Issue all virtualenv creation in one place in CI pip-installer script now
@@ -102,15 +102,15 @@ pip-installer:
- ls -la /dev | grep nvidia
- echo $(python tests/get_gpu_index.py)
- export CUDA_VISIBLE_DEVICES=$(python tests/get_gpu_index.py)
- # create a virtual env to test pip installer
- - venv="niftynet-pip-installer-venv"
- - virtualenv $venv
# create a Python file that will import all available packages from the pip installer
- package_importer="import_niftynet_packages.py"
# traverse the file hierarchy recursively to discover all packages
- find niftynet -type f \( ! -name . \) -print | grep '.py$' | grep -v __init__ | sed 's/\.\.\///g;s/\//\./g;s/\.py//g;s/niftynet/import niftynet/g' > $venv/$package_importer
# save NiftyNet folder path just in case
- niftynet_dir=$(pwd)
+ # create a virtual env to test pip installer
+ - venv="niftynet-pip-installer-venv"
+ - virtualenv $venv
- cd $venv
- source bin/activate
# install dependencies for GPU
