Issue pip-installer CI script prints verbose output about used Python
@@ -108,12 +108,16 @@ pip-installer:
- find niftynet -type f \( ! -name . \) -print | grep '.py$' | grep -v __init__ | sed 's/\.\.\///g;s/\//\./g;s/\.py//g;s/niftynet/import niftynet/g' > $package_importer
# save NiftyNet folder path just in case
- niftynet_dir=$(pwd)
+ # ============= Python 2 ============================
# create a virtual env to test pip installer
- venv="niftynet-pip-installer-venv-py2"
- mypython=$(which python2)
- virtualenv -p $mypython $venv
- cd $venv
- source bin/activate
+ # print Python version to CI output
+ - which python
+ - python --version
# install dependencies for GPU
- pip install -r $niftynet_dir/requirements-gpu.txt
- pip install simpleitk
@@ -125,5 +129,6 @@ pip-installer:
- python $package_importer
# deactivate virtual environment
- deactivate
+ - cd $niftynet_dir
tags:
- gift-adelie
