diff options
| author | doko@ubuntu.com <doko@ubuntu.com> | 2013-03-21 13:39:52 -0700 |
|---|---|---|
| committer | doko@ubuntu.com <doko@ubuntu.com> | 2013-03-21 13:39:52 -0700 |
| commit | d4ed75baabba8f3bcbb48a4895c943c5ff508dbf (patch) | |
| tree | 7191102da28954a4181e63487677420552c20109 /tests/test_build_ext.py | |
| parent | 0c09bf1bc035dfbc0caf1339c05a04cca238fcd6 (diff) | |
| parent | 92dbe54b5873bcf8c2b20260482a353a9e2c5a70 (diff) | |
| download | python-setuptools-git-d4ed75baabba8f3bcbb48a4895c943c5ff508dbf.tar.gz | |
- Issue #16754: Fix the incorrect shared library extension on linux. Introduce
two makefile macros SHLIB_SUFFIX and EXT_SUFFIX. SO now has the value of
SHLIB_SUFFIX again (as in 2.x and 3.1). The SO macro is removed in 3.4.
Diffstat (limited to 'tests/test_build_ext.py')
| -rw-r--r-- | tests/test_build_ext.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_build_ext.py b/tests/test_build_ext.py index 065a6a21..44a9852f 100644 --- a/tests/test_build_ext.py +++ b/tests/test_build_ext.py @@ -318,8 +318,8 @@ class BuildExtTestCase(TempdirManager, finally: os.chdir(old_wd) self.assertTrue(os.path.exists(so_file)) - so_ext = sysconfig.get_config_var('SO') - self.assertTrue(so_file.endswith(so_ext)) + ext_suffix = sysconfig.get_config_var('EXT_SUFFIX') + self.assertTrue(so_file.endswith(ext_suffix)) so_dir = os.path.dirname(so_file) self.assertEqual(so_dir, other_tmp_dir) @@ -328,7 +328,7 @@ class BuildExtTestCase(TempdirManager, cmd.run() so_file = cmd.get_outputs()[0] self.assertTrue(os.path.exists(so_file)) - self.assertTrue(so_file.endswith(so_ext)) + self.assertTrue(so_file.endswith(ext_suffix)) so_dir = os.path.dirname(so_file) self.assertEqual(so_dir, cmd.build_lib) @@ -355,7 +355,7 @@ class BuildExtTestCase(TempdirManager, self.assertEqual(lastdir, 'bar') def test_ext_fullpath(self): - ext = sysconfig.get_config_vars()['SO'] + ext = sysconfig.get_config_var('EXT_SUFFIX') # building lxml.etree inplace #etree_c = os.path.join(self.tmp_dir, 'lxml.etree.c') #etree_ext = Extension('lxml.etree', [etree_c]) |
