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
dab253cb
Commit
dab253cb
authored
Aug 05, 2016
by
Daniel Holth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
call finalize_options in test
parent
a2605b29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
setuptools/tests/test_build_ext.py
setuptools/tests/test_build_ext.py
+7
-2
No files found.
setuptools/tests/test_build_ext.py
View file @
dab253cb
...
...
@@ -2,7 +2,7 @@ import sys
import
distutils.command.build_ext
as
orig
from
distutils.sysconfig
import
get_config_var
from
setuptools.command.build_ext
import
build_ext
from
setuptools.command.build_ext
import
build_ext
,
get_abi3_suffix
from
setuptools.dist
import
Distribution
from
setuptools.extension
import
Extension
...
...
@@ -26,8 +26,13 @@ class TestBuildExt:
Filename needs to be loadable by several versions
of Python 3 if 'is_abi3' is truthy on Extension()
"""
dist
=
Distribution
(
dict
(
ext_modules
=
[
Extension
(
'spam.eggs'
,
[],
is_abi3
=
True
)]))
print
(
get_abi3_suffix
())
extension
=
Extension
(
'spam.eggs'
,
[
'eggs.c'
],
is_abi3
=
True
)
dist
=
Distribution
(
dict
(
ext_modules
=
[
extension
]))
cmd
=
build_ext
(
dist
)
cmd
.
finalize_options
()
assert
'spam.eggs'
in
cmd
.
ext_map
res
=
cmd
.
get_ext_filename
(
'spam.eggs'
)
if
sys
.
version_info
[
0
]
==
2
:
...
...
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