mirror of
https://github.com/python/cpython.git
synced 2025-08-18 15:51:23 +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
|
@ -628,6 +628,8 @@ class build_ext (Command):
|
|||
The file is located in `build_lib` or directly in the package
|
||||
(inplace option).
|
||||
"""
|
||||
if os.sep in ext_name:
|
||||
ext_name = ext_name.replace(os.sep, '.')
|
||||
fullname = self.get_ext_fullname(ext_name)
|
||||
modpath = fullname.split('.')
|
||||
filename = self.get_ext_filename(ext_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue