summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-06-29 16:46:14 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-06-29 16:46:14 (GMT)
commit2c3de40971b92d9dcd8ebcb24c0bda031b5732be (patch)
treea58df64f64ecb210df69a5eb1256256372082c94 /Lib/distutils/command
parent4e82f2df3dc54d28ba95665f5dd6293cdc8524d5 (diff)
downloadcpython-2c3de40971b92d9dcd8ebcb24c0bda031b5732be.zip
cpython-2c3de40971b92d9dcd8ebcb24c0bda031b5732be.tar.gz
cpython-2c3de40971b92d9dcd8ebcb24c0bda031b5732be.tar.bz2
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 ........ ................
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/build_ext.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 31e036b..57a110b 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -630,16 +630,16 @@ class build_ext(Command):
(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)