diff options
| author | ?ric Araujo <merwok@netwok.org> | 2012-02-09 21:05:47 +0100 |
|---|---|---|
| committer | ?ric Araujo <merwok@netwok.org> | 2012-02-09 21:05:47 +0100 |
| commit | ce3d2240908c84bbe7b9762b09ba3ffcfe44e7a5 (patch) | |
| tree | a14fae0ba4ac5a3a18ba741abb1edf8a699936ce /distutils2/command/build.py | |
| parent | 08fd2b17458378aa59677e439a9fc69f38147061 (diff) | |
| parent | 90b039c8d93fe3fb157fc4fe5bb47265dd8a4399 (diff) | |
| download | disutils2-ce3d2240908c84bbe7b9762b09ba3ffcfe44e7a5.tar.gz | |
Merge fixes for #13462 and others from default
Diffstat (limited to 'distutils2/command/build.py')
| -rw-r--r-- | distutils2/command/build.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/distutils2/command/build.py b/distutils2/command/build.py index 708b848..d4ace38 100644 --- a/distutils2/command/build.py +++ b/distutils2/command/build.py @@ -82,8 +82,8 @@ class build(Command): raise PackagingOptionError( "--plat-name only supported on Windows (try " "using './configure --help' on your platform)") - - plat_specifier = ".%s-%s" % (self.plat_name, sys.version[0:3]) + pyversion = '%s.%s' % sys.version_info[:2] + plat_specifier = ".%s-%s" % (self.plat_name, pyversion) # Make it so Python 2.x and Python 2.x with --with-pydebug don't # share the same build directories. Doing so confuses the build @@ -116,7 +116,7 @@ class build(Command): 'temp' + plat_specifier) if self.build_scripts is None: self.build_scripts = os.path.join(self.build_base, - 'scripts-' + sys.version[0:3]) + 'scripts-' + pyversion) if self.executable is None: self.executable = os.path.normpath(sys.executable) |
