File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ matrix:
4343 - travis_retry pip install --install-option="--no-cython-compile" Cython==0.24
4444 - python -c "from __future__ import print_function; import numpy; print(numpy.__version__)"
4545 - git clone --depth=1 https://github.com/libdynd/libdynd.git
46- - python setup.py install --target=ndt
46+ - python setup.py install --target=ndt -j2
4747 - rm -rf build dist dynd.ndt.egg-info
4848 - echo dynd.ndt >> requirements.txt
49- - python setup.py install --target=nd
49+ - python setup.py install --target=nd -j2
5050 script :
5151 - pushd ..
5252 - python -m dynd.ndt.test
Original file line number Diff line number Diff line change 1616# need it here already.
1717parser = argparse .ArgumentParser ()
1818parser .add_argument ('--target' , default = 'all' )
19+ parser .add_argument ('-j' , default = None )
1920values , rest = parser .parse_known_args ()
2021DIST_TARGET = values .target
22+ PARALLEL = values .j
2123sys .argv = sys .argv [:1 ] + rest
2224
2325#
@@ -210,7 +212,10 @@ def run(self):
210212 if sys .platform != 'win32' :
211213 cmake_command .append (source )
212214 self .spawn (cmake_command )
213- self .spawn (['make' ])
215+ if PARALLEL :
216+ self .spawn (['make' , '-j%d' % int (PARALLEL )])
217+ else :
218+ self .spawn (['make' ])
214219 else :
215220 if "-G" not in self .extra_cmake_args :
216221 cmake_generator = 'Visual Studio 14 2015'
You can’t perform that action at this time.
0 commit comments