Skip to content

Commit ec108a1

Browse files
committed
Enable ABI suffix for extension module
When installing torchaudio from source `python setup.py install` performs egg (zip) installation. This causes confusion when building from source for multiple environments with different Python versions, as `_torchaudio.so` does not have Python ABI version in its name and importlib cannot find it. This change fixs this by enableing ABI extension. squash! Enable ABI suffix for extension module
1 parent dab7f64 commit ec108a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def run(self):
8383
packages=find_packages(exclude=["build*", "test*", "torchaudio.csrc*", "third_party*", "build_tools*"]),
8484
ext_modules=setup_helpers.get_ext_modules(),
8585
cmdclass={
86-
'build_ext': setup_helpers.BuildExtension.with_options(no_python_abi_suffix=True)
86+
'build_ext': setup_helpers.BuildExtension,
8787
},
8888
install_requires=[pytorch_package_dep]
8989
)

0 commit comments

Comments
 (0)