diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2015-07-16 21:08:59 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2015-07-16 21:10:21 +0200 |
commit | 7b0b5d1219f8869857db778032dc417aea89eb9f (patch) | |
tree | 4e6b04c01035508fb3512df1003b2e185f1e9840 /numpy/distutils/command/build.py | |
parent | 49617ac803dfe6f9542410045854203018602b18 (diff) | |
download | numpy-7b0b5d1219f8869857db778032dc417aea89eb9f.tar.gz |
MAINT: adapt parallel build option names to python3.5
python3.5 uses --parallel instead of --jobs
Diffstat (limited to 'numpy/distutils/command/build.py')
-rw-r--r-- | numpy/distutils/command/build.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/distutils/command/build.py b/numpy/distutils/command/build.py index f7249ae81..3d7101582 100644 --- a/numpy/distutils/command/build.py +++ b/numpy/distutils/command/build.py @@ -16,7 +16,7 @@ class build(old_build): user_options = old_build.user_options + [ ('fcompiler=', None, "specify the Fortran compiler type"), - ('jobs=', 'j', + ('parallel=', 'j', "number of parallel jobs"), ] @@ -28,14 +28,14 @@ class build(old_build): def initialize_options(self): old_build.initialize_options(self) self.fcompiler = None - self.jobs = None + self.parallel = None def finalize_options(self): - if self.jobs: + if self.parallel: try: - self.jobs = int(self.jobs) + self.parallel = int(self.parallel) except ValueError: - raise ValueError("--jobs/-j argument must be an integer") + 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]) |