-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c77d12
commit 951903d
Showing
3 changed files
with
51 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
from setuptools import setup | ||
from setuptools import setup, Extension | ||
from wheel.bdist_wheel import bdist_wheel | ||
|
||
setup(cmake_source_dir="./src") | ||
|
||
class bdist_wheel_abi3(bdist_wheel): | ||
def get_tag(self): | ||
python, abi, plat = super().get_tag() | ||
|
||
if python.startswith("cp"): | ||
# on CPython, our wheels are abi3 and compatible back to 3.10 | ||
return "cp310", "abi3", plat | ||
|
||
return python, abi, plat | ||
|
||
|
||
setup( | ||
cmake_source_dir="./src", | ||
cmdclass={"bdist_wheel": bdist_wheel_abi3}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters