-
Notifications
You must be signed in to change notification settings - Fork 692
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use sysconfig if distutils is not available
distutils have been removed in Python 3.12. Co-authored-by: Steve Kowalik <[email protected]> Co-authored-by: Terence D. Honles <[email protected]> Co-authored-by: Riccardo Magliocchetti <[email protected]>
- Loading branch information
1 parent
0e9eb9f
commit b030a71
Showing
9 changed files
with
95 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
from distutils import sysconfig | ||
try: | ||
from distutils import sysconfig | ||
paths = [ | ||
sysconfig.get_python_inc(), | ||
sysconfig.get_python_inc(plat_specific=True), | ||
] | ||
except ImportError: | ||
import sysconfig | ||
paths = [ | ||
sysconfig.get_path('include'), | ||
sysconfig.get_path('platinclude'), | ||
] | ||
|
||
NAME = 'asyncio' | ||
|
||
CFLAGS = [ | ||
'-I' + sysconfig.get_python_inc(), | ||
'-I' + sysconfig.get_python_inc(plat_specific=True) | ||
] | ||
CFLAGS = ['-I' + path for path in paths] | ||
LDFLAGS = [] | ||
LIBS = [] | ||
GCC_LIST = ['asyncio'] |
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
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
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
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