diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2019-08-28 17:43:47 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-28 17:43:47 -0600 |
commit | 766a88d2a1fcc03c74d19a6c04b87ab825819067 (patch) | |
tree | efb7d38b597e623d7e05c29eda2f3521acd4f6e1 /numpy/distutils/command/build.py | |
parent | 9cc5f99f3281ade5eef6b097f5853eb8bb471416 (diff) | |
parent | bd59cd437be25443d918ddb558563a1581db8738 (diff) | |
download | numpy-766a88d2a1fcc03c74d19a6c04b87ab825819067.tar.gz |
Merge pull request #14364 from hugovk/fix-flake8-2020
MAINT: Fixes for prospective Python 3.10 and 4.0
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..b3e18b204 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[:2]) if build_scripts is None: self.build_scripts = os.path.join(self.build_base, 'scripts' + plat_specifier) |