mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Should fix remaining 3.1 buildbot failure
This commit is contained in:
parent
8ad8039636
commit
ecdd08462a
1 changed files with 9 additions and 3 deletions
|
@ -52,9 +52,14 @@ class BuildExtTestCase(TempdirManager,
|
||||||
# To further add to the fun, we can't just add library_dirs to the
|
# 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
|
# Extension() instance because that doesn't get plumbed through to the
|
||||||
# final compiler command.
|
# final compiler command.
|
||||||
if not sys.platform.startswith('win'):
|
if (sysconfig.get_config_var('Py_ENABLE_SHARED') and
|
||||||
library_dir = sysconfig.get_config_var('srcdir')
|
not sys.platform.startswith('win')):
|
||||||
cmd.library_dirs = [('.' if library_dir is None else library_dir)]
|
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):
|
def test_build_ext(self):
|
||||||
global ALREADY_TESTED
|
global ALREADY_TESTED
|
||||||
|
@ -317,6 +322,7 @@ class BuildExtTestCase(TempdirManager,
|
||||||
dist = Distribution({'name': 'xx',
|
dist = Distribution({'name': 'xx',
|
||||||
'ext_modules': [ext]})
|
'ext_modules': [ext]})
|
||||||
cmd = build_ext(dist)
|
cmd = build_ext(dist)
|
||||||
|
self._fixup_command(cmd)
|
||||||
cmd.ensure_finalized()
|
cmd.ensure_finalized()
|
||||||
self.assertEquals(len(cmd.get_outputs()), 1)
|
self.assertEquals(len(cmd.get_outputs()), 1)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue