summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_ext.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/command/build_ext.py')
-rw-r--r--numpy/distutils/command/build_ext.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/numpy/distutils/command/build_ext.py b/numpy/distutils/command/build_ext.py
index c588204e5..d95faf5e1 100644
--- a/numpy/distutils/command/build_ext.py
+++ b/numpy/distutils/command/build_ext.py
@@ -34,7 +34,7 @@ class build_ext (old_build_ext):
user_options = old_build_ext.user_options + [
('fcompiler=', None,
"specify the Fortran compiler type"),
- ('jobs=', 'j',
+ ('parallel=', 'j',
"number of parallel jobs"),
]
@@ -46,14 +46,14 @@ class build_ext (old_build_ext):
def initialize_options(self):
old_build_ext.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")
# Ensure that self.include_dirs and self.distribution.include_dirs
# refer to the same list object. finalize_options will modify
@@ -72,7 +72,7 @@ class build_ext (old_build_ext):
self.include_dirs.extend(incl_dirs)
old_build_ext.finalize_options(self)
- self.set_undefined_options('build', ('jobs', 'jobs'))
+ self.set_undefined_options('build', ('parallel', 'parallel'))
def run(self):
if not self.extensions: