mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
Fixed #7115: using paths instead of dotted name for extensions works too in distutils.command.build_ext
This commit is contained in:
parent
dff2028a1b
commit
ff0d8a36be
3 changed files with 15 additions and 0 deletions
|
@ -363,6 +363,16 @@ class BuildExtTestCase(support.TempdirManager,
|
|||
path = cmd.get_ext_fullpath('lxml.etree')
|
||||
self.assertEquals(wanted, path)
|
||||
|
||||
def test_build_ext_path_with_os_sep(self):
|
||||
dist = Distribution({'name': 'UpdateManager'})
|
||||
cmd = build_ext(dist)
|
||||
cmd.ensure_finalized()
|
||||
ext = sysconfig.get_config_var("SO")
|
||||
ext_name = os.path.join('UpdateManager', 'fdsend')
|
||||
ext_path = cmd.get_ext_fullpath(ext_name)
|
||||
wanted = os.path.join(cmd.build_lib, 'UpdateManager', 'fdsend' + ext)
|
||||
self.assertEquals(ext_path, wanted)
|
||||
|
||||
def test_suite():
|
||||
if not sysconfig.python_build:
|
||||
if test_support.verbose:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue