File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,16 @@ set -x
1414if [ " $INSTALL_TYPE " = " sdist" -o " $INSTALL_TYPE " = " wheel" ]; then
1515 python -m build
1616elif [ " $INSTALL_TYPE " = " archive" ]; then
17- ARCHIVE=" package.tar.gz"
17+ ARCHIVE=" /tmp/ package.tar.gz"
1818 git archive -o $ARCHIVE HEAD
1919fi
2020
2121if [ " $INSTALL_TYPE " = " sdist" ]; then
22- ARCHIVE=$( ls dist/* .tar.gz )
22+ ARCHIVE=$( ls $PWD / dist/* .tar.gz )
2323elif [ " $INSTALL_TYPE " = " wheel" ]; then
24- ARCHIVE=$( ls dist/* .whl )
24+ ARCHIVE=$( ls $PWD / dist/* .whl )
2525elif [ " $INSTALL_TYPE " = " pip" ]; then
26- ARCHIVE=" . "
26+ ARCHIVE=" $PWD "
2727fi
2828
2929export ARCHIVE
Original file line number Diff line number Diff line change @@ -18,10 +18,15 @@ if [ -n "$EXTRA_PIP_FLAGS" ]; then
1818 EXTRA_PIP_FLAGS=${! EXTRA_PIP_FLAGS}
1919fi
2020
21- pip install $EXTRA_PIP_FLAGS $ARCHIVE
22-
23- # Basic import check
24- python -c ' import nibabel; print(nibabel.__version__)'
21+ (
22+ # Ensure installation does not depend on being in source tree
23+ mkdir ../unversioned_install_dir
24+ cd ../unversioned_install_dir
25+ pip install $EXTRA_PIP_FLAGS $ARCHIVE
26+
27+ # Basic import check
28+ python -c ' import nibabel; print(nibabel.__version__)'
29+ )
2530
2631if [ " $CHECK_TYPE " == " skiptests" ]; then
2732 exit 0
You can’t perform that action at this time.
0 commit comments