Skip to content

Commit

Permalink
Enable python agnosticism
Browse files Browse the repository at this point in the history
  • Loading branch information
janeyx99 committed Nov 13, 2024
1 parent acd19e0 commit 7001015
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def get_extensions():
extension(
"torchao._C",
sources,
py_limited_api=True,
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
)
Expand All @@ -139,4 +140,7 @@ def get_extensions():
long_description_content_type="text/markdown",
url="https://github.com/pytorch-labs/ao",
cmdclass={"build_ext": BuildExtension},
options={"bdist_wheel": {
"py_limited_api": "cp39"
}},
)

0 comments on commit 7001015

Please sign in to comment.