Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
702a4277
Commit
702a4277
authored
Aug 05, 2016
by
Daniel Holth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename is_abi3 to py_limited_api
parent
dab253cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
setuptools/command/build_ext.py
setuptools/command/build_ext.py
+3
-1
setuptools/extension.py
setuptools/extension.py
+2
-2
setuptools/tests/test_build_ext.py
setuptools/tests/test_build_ext.py
+1
-1
No files found.
setuptools/command/build_ext.py
View file @
702a4277
...
...
@@ -104,7 +104,9 @@ class build_ext(_build_ext):
filename
=
_build_ext
.
get_ext_filename
(
self
,
fullname
)
if
fullname
in
self
.
ext_map
:
ext
=
self
.
ext_map
[
fullname
]
if
sys
.
version_info
[
0
]
!=
2
and
getattr
(
ext
,
'is_abi3'
):
if
(
sys
.
version_info
[
0
]
!=
2
and
getattr
(
ext
,
'py_limited_api'
)
and
get_abi3_suffix
()):
from
distutils.sysconfig
import
get_config_var
so_ext
=
get_config_var
(
'SO'
)
filename
=
filename
[:
-
len
(
so_ext
)]
...
...
setuptools/extension.py
View file @
702a4277
...
...
@@ -36,8 +36,8 @@ have_pyrex = _have_cython
class
Extension
(
_Extension
):
"""Extension that uses '.c' files in place of '.pyx' files"""
def
__init__
(
self
,
name
,
sources
,
is_abi3
=
False
,
**
kw
):
self
.
is_abi3
=
is_abi3
def
__init__
(
self
,
name
,
sources
,
py_limited_api
=
False
,
**
kw
):
self
.
py_limited_api
=
py_limited_api
_Extension
.
__init__
(
self
,
name
,
sources
,
**
kw
)
def
_convert_pyx_sources_to_lang
(
self
):
...
...
setuptools/tests/test_build_ext.py
View file @
702a4277
...
...
@@ -28,7 +28,7 @@ class TestBuildExt:
"""
print
(
get_abi3_suffix
())
extension
=
Extension
(
'spam.eggs'
,
[
'eggs.c'
],
is_abi3
=
True
)
extension
=
Extension
(
'spam.eggs'
,
[
'eggs.c'
],
py_limited_api
=
True
)
dist
=
Distribution
(
dict
(
ext_modules
=
[
extension
]))
cmd
=
build_ext
(
dist
)
cmd
.
finalize_options
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment