Mercurial > cpython-lru_cache-weakref
diff Lib/distutils/command/build_ext.py @ 54981:514cae62ccda 3.1
Merged revisions 73689 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r73689 | tarek.ziade | 2009-06-29 18:19:22 +0200 (Mon, 29 Jun 2009) | 9 lines
Merged revisions 73688 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73688 | tarek.ziade | 2009-06-29 18:13:39 +0200 (Mon, 29 Jun 2009) | 1 line
Fixed 6365: wrong inplace location for build_ext if the extension had dots
........
................
| author | Tarek Ziadé <ziade.tarek@gmail.com> |
|---|---|
| date | Mon, 29 Jun 2009 16:46:14 +0000 |
| parents | 9394a82d8de1 |
| children | d8c83cc0d3fd |
line wrap: on
line diff
--- a/Lib/distutils/command/build_ext.py Mon Jun 29 15:02:36 2009 +0000 +++ b/Lib/distutils/command/build_ext.py Mon Jun 29 16:46:14 2009 +0000 @@ -630,16 +630,16 @@ (inplace option). """ fullname = self.get_ext_fullname(ext_name) - filename = self.get_ext_filename(fullname) + modpath = fullname.split('.') + package = '.'.join(modpath[0:-1]) + base = modpath[-1] + filename = self.get_ext_filename(base) if not self.inplace: # no further work needed return os.path.join(self.build_lib, filename) # the inplace option requires to find the package directory # using the build_py command - modpath = fullname.split('.') - package = '.'.join(modpath[0:-1]) - base = modpath[-1] build_py = self.get_finalized_command('build_py') package_dir = os.path.abspath(build_py.get_package_dir(package)) return os.path.join(package_dir, filename)
