@@ -62,12 +62,7 @@ def initialize_options (self):
6262
6363 def finalize_options (self ):
6464
65- # Need this to name platform-specific directories, but sys.platform
66- # is not enough -- it only names the OS and version, not the
67- # hardware architecture!
68- self .plat = get_platform ()
69-
70- plat_specifier = sys .version [0 :3 ] + '-' + self .plat
65+ plat_specifier = ".%s-%s" % (get_platform (), sys .version [0 :3 ])
7166
7267 # 'build_purelib' and 'build_platlib' just default to 'lib' and
7368 # 'lib.<plat>' under the base build directory. We only use one of
@@ -76,7 +71,7 @@ def finalize_options (self):
7671 self .build_purelib = os .path .join (self .build_base , 'lib' )
7772 if self .build_platlib is None :
7873 self .build_platlib = os .path .join (self .build_base ,
79- 'lib- ' + plat_specifier )
74+ 'lib' + plat_specifier )
8075
8176 # 'build_lib' is the actual directory that we will use for this
8277 # particular module distribution -- if user didn't supply it, pick
@@ -91,9 +86,10 @@ def finalize_options (self):
9186 # "build/temp.<plat>"
9287 if self .build_temp is None :
9388 self .build_temp = os .path .join (self .build_base ,
94- 'temp- ' + plat_specifier )
89+ 'temp' + plat_specifier )
9590 if self .build_scripts is None :
9691 self .build_scripts = os .path .join (self .build_base , 'scripts' )
92+
9793 # finalize_options ()
9894
9995
0 commit comments