summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-09-16 02:06:45 (GMT)
committerGreg Ward <gward@python.net>2000-09-16 02:06:45 (GMT)
commit53db8154e604959daa1edc08c6573a43f896e410 (patch)
tree6d2165d19c0c8bdf6fe51d7ac8793f08698ecae0
parente918b6fdb52bcb904b63da1d14256d76ae48ede6 (diff)
downloadcpython-53db8154e604959daa1edc08c6573a43f896e410.zip
cpython-53db8154e604959daa1edc08c6573a43f896e410.tar.gz
cpython-53db8154e604959daa1edc08c6573a43f896e410.tar.bz2
Tweaked the build temp dir names again.
-rw-r--r--Lib/distutils/command/build.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/Lib/distutils/command/build.py b/Lib/distutils/command/build.py
index 1d90128..15476ca 100644
--- a/Lib/distutils/command/build.py
+++ b/Lib/distutils/command/build.py
@@ -62,12 +62,7 @@ class build (Command):
def finalize_options (self):
- # Need this to name platform-specific directories, but sys.platform
- # is not enough -- it only names the OS and version, not the
- # hardware architecture!
- self.plat = get_platform ()
-
- plat_specifier = sys.version[0:3] + '-' + self.plat
+ plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
# 'build_purelib' and 'build_platlib' just default to 'lib' and
# 'lib.<plat>' under the base build directory. We only use one of
@@ -76,7 +71,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-' + plat_specifier)
+ '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
@@ -91,9 +86,10 @@ class build (Command):
# "build/temp.<plat>"
if self.build_temp is None:
self.build_temp = os.path.join (self.build_base,
- 'temp-' + plat_specifier)
+ 'temp' + plat_specifier)
if self.build_scripts is None:
self.build_scripts = os.path.join (self.build_base, 'scripts')
+
# finalize_options ()