Fixed #7115: using paths instead of dotted name for extensions works too in distutils.command.build_ext

This commit is contained in:
Tarek Ziadé 2009-10-12 22:38:34 +00:00
parent dff2028a1b
commit ff0d8a36be
3 changed files with 15 additions and 0 deletions

View file

@ -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)