diff options
author | Hugo <hugovk@users.noreply.github.com> | 2019-08-26 17:49:00 +0300 |
---|---|---|
committer | Hugo <hugovk@users.noreply.github.com> | 2019-08-26 18:22:55 +0300 |
commit | e7c1f8e789d8ccea6034f791393a2122e1237886 (patch) | |
tree | 093a02e7e309288ce3d22f7081f2158d486af301 /numpy/distutils/command/build.py | |
parent | dc089026b4ad0d2d9ea992c7f1b9b5e716dd82cd (diff) | |
download | numpy-e7c1f8e789d8ccea6034f791393a2122e1237886.tar.gz |
BUG: Fix for Python 3.10
Diffstat (limited to 'numpy/distutils/command/build.py')
-rw-r--r-- | numpy/distutils/command/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/command/build.py b/numpy/distutils/command/build.py index 3d7101582..e0d1c8413 100644 --- a/numpy/distutils/command/build.py +++ b/numpy/distutils/command/build.py @@ -38,7 +38,7 @@ class build(old_build): raise ValueError("--parallel/-j argument must be an integer") build_scripts = self.build_scripts old_build.finalize_options(self) - plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3]) + plat_specifier = ".{}-{}.{}".format(get_platform(), *sys.version_info) if build_scripts is None: self.build_scripts = os.path.join(self.build_base, 'scripts' + plat_specifier) |