7236e3f4b97eaeb942f07d75501e9626e80e7f85,setup.py,,,#,6

Before Change


        CppExtension(
            "_torch_sox", ["torchaudio/torch_sox.cpp"], libraries=["sox"]),
    ],
    cmdclass={"build_ext": BuildExtension})

After Change



import build

this_file = os.path.dirname(__file__)

setup(
    name="torchaudio",
    version="0.1",
    description="An audio package for PyTorch",
    url="https://github.com/pytorch/audio",
    author="Soumith Chintala, David Pollack, Sean Naren",
    author_email="soumith@pytorch.org",
    // Require cffi.
    install_requires=["cffi>=1.0.0"],
    setup_requires=["cffi>=1.0.0"],
    // Exclude the build files.
    packages=find_packages(exclude=["build"]),
    // Package where to put the extensions. Has to be a prefix of build.py.
    ext_package="",
    // Extensions to compile.
    cffi_modules=[
        os.path.join(this_file, "build.py:ffi")
    ],
)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: pytorch/audio
Commit Name: 7236e3f4b97eaeb942f07d75501e9626e80e7f85
Time: 2018-04-26
Author: soumith@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: pytorch/audio
Commit Name: d5eadbdc28a751aba10b57cbad52f90dbbf64938
Time: 2018-05-07
Author: soumith@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: chartbeat-labs/textacy
Commit Name: 03e098c84a14309b87528ef21ccb5e4f834de5f5
Time: 2020-03-01
Author: burtdewilde@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: rtavenar/tslearn
Commit Name: 58cb5e6c44bb9f3f85de74c85584e926b5954610
Time: 2019-06-28
Author: romain.tavenard@univ-rennes2.fr
File Name: setup.py
Class Name:
Method Name: