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
1208ea17
Commit
1208ea17
authored
Oct 22, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Should fix remaining 3.1 buildbot failure
parent
b6d0fe50
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
tests/test_build_ext.py
tests/test_build_ext.py
+9
-3
No files found.
tests/test_build_ext.py
View file @
1208ea17
...
...
@@ -52,9 +52,14 @@ class BuildExtTestCase(TempdirManager,
# To further add to the fun, we can't just add library_dirs to the
# Extension() instance because that doesn't get plumbed through to the
# final compiler command.
if
not
sys
.
platform
.
startswith
(
'win'
):
library_dir
=
sysconfig
.
get_config_var
(
'srcdir'
)
cmd
.
library_dirs
=
[(
'.'
if
library_dir
is
None
else
library_dir
)]
if
(
sysconfig
.
get_config_var
(
'Py_ENABLE_SHARED'
)
and
not
sys
.
platform
.
startswith
(
'win'
)):
runshared
=
sysconfig
.
get_config_var
(
'RUNSHARED'
)
if
runshared
is
None
:
cmd
.
library_dirs
=
[
'.'
]
else
:
name
,
equals
,
value
=
runshared
.
partition
(
'='
)
cmd
.
library_dirs
=
value
.
split
(
os
.
pathsep
)
def
test_build_ext
(
self
):
global
ALREADY_TESTED
...
...
@@ -317,6 +322,7 @@ class BuildExtTestCase(TempdirManager,
dist
=
Distribution
({
'name'
:
'xx'
,
'ext_modules'
:
[
ext
]})
cmd
=
build_ext
(
dist
)
self
.
_fixup_command
(
cmd
)
cmd
.
ensure_finalized
()
self
.
assertEquals
(
len
(
cmd
.
get_outputs
()),
1
)
...
...
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