535244a3d5ff6f2247d717090355ff84b6a1c5d7,setup.py,,,#,276

Before Change


)

// not installing?
if len(sys.argv) == 1 or (len(sys.argv) >= 2 and ("--help" in sys.argv[1:] or
                          sys.argv[1] in ("--help-commands",
                                          "--version",
                                          "clean"))):
    pass
else:
    metadata["package_data"] = {
        "pyemma": ["pyemma.cfg", "logging.yml"],
        "pyemma.coordinates.tests": ["data/*"],
        "pyemma.msm.tests": ["data/*"],
        "pyemma.datasets": ["*.npz"],
        "pyemma.util.tests": ["data/*"],
    }

    // init submodules
    if os.path.exists(".git"):
        import subprocess
        modules = []
        cmd = "git submodule update --init {mod}"
        for m in modules:
            subprocess.check_call(cmd.format(mod=m).split(" "))

    // only require numpy and extensions in case of building/installing
    metadata["ext_modules"] = extensions()//lazy_cythonize(callback=extensions)
    // packages are found if their folder contains an __init__.py,
    metadata["packages"] = find_packages()

if __name__ == "__main__":
    setup(**metadata)

After Change




if __name__ == "__main__":
    if parse_setuppy_commands():
        // only require numpy and extensions in case of building/installing
        metadata["ext_modules"] = extensions()

    setup(**metadata)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: markovmodel/PyEMMA
Commit Name: 535244a3d5ff6f2247d717090355ff84b6a1c5d7
Time: 2019-05-10
Author: m.scherer@fu-berlin.de
File Name: setup.py
Class Name:
Method Name:


Project Name: deepmipt/DeepPavlov
Commit Name: 405fa5b1a6f4dfeb9d4594526605a6345fe5663c
Time: 2018-07-24
Author: yoptar@gmail.com
File Name: utils/pip_wrapper/pip_wrapper.py
Class Name:
Method Name: install


Project Name: NervanaSystems/coach
Commit Name: a543f10c1a249f74d6fd1941597b148d249f6a65
Time: 2019-04-03
Author: shadi.endrawis@intel.com
File Name: setup.py
Class Name:
Method Name:


Project Name: horovod/horovod
Commit Name: 775959d9e42c5dd4d59e97e6ed7a89ac8d65582c
Time: 2020-11-19
Author: joshr@nvidia.com
File Name: horovod/mxnet/mpi_ops.py
Class Name:
Method Name: allreduce


Project Name: horovod/horovod
Commit Name: 775959d9e42c5dd4d59e97e6ed7a89ac8d65582c
Time: 2020-11-19
Author: joshr@nvidia.com
File Name: horovod/mxnet/mpi_ops.py
Class Name:
Method Name: allreduce_