diff options
author | Greg Ward <gward@python.net> | 2000-09-16 01:54:46 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-09-16 01:54:46 (GMT) |
commit | 42900941b8699be5119e2eb1f0bebd5f21222801 (patch) | |
tree | 87648cac3eada3779a2212e065ab6744911ba6bb /Lib/distutils/command/build.py | |
parent | 9ae7c3c9a5e42a2b856090978387e5036e4a4b86 (diff) | |
download | cpython-42900941b8699be5119e2eb1f0bebd5f21222801.zip cpython-42900941b8699be5119e2eb1f0bebd5f21222801.tar.gz cpython-42900941b8699be5119e2eb1f0bebd5f21222801.tar.bz2 |
Include the Python version in the platform-specific build directories:
with the recent change in 'get_platform()', we now have directory names
like "build/lib-1.5-linux-i586". Idea and original patch by
Rene Liebscher.
Diffstat (limited to 'Lib/distutils/command/build.py')
-rw-r--r-- | Lib/distutils/command/build.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/distutils/command/build.py b/Lib/distutils/command/build.py index 1e87f23..1d90128 100644 --- a/Lib/distutils/command/build.py +++ b/Lib/distutils/command/build.py @@ -67,6 +67,8 @@ class build (Command): # hardware architecture! self.plat = get_platform () + plat_specifier = sys.version[0:3] + '-' + self.plat + # 'build_purelib' and 'build_platlib' just default to 'lib' and # 'lib.<plat>' under the base build directory. We only use one of # them for a given distribution, though -- @@ -74,7 +76,7 @@ class build (Command): self.build_purelib = os.path.join (self.build_base, 'lib') if self.build_platlib is None: self.build_platlib = os.path.join (self.build_base, - 'lib.' + self.plat) + 'lib-' + plat_specifier) # 'build_lib' is the actual directory that we will use for this # particular module distribution -- if user didn't supply it, pick @@ -89,7 +91,7 @@ class build (Command): # "build/temp.<plat>" if self.build_temp is None: self.build_temp = os.path.join (self.build_base, - 'temp.' + self.plat) + 'temp-' + plat_specifier) if self.build_scripts is None: self.build_scripts = os.path.join (self.build_base, 'scripts') # finalize_options () |