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
14
14
if [ " $INSTALL_TYPE " = " sdist" -o " $INSTALL_TYPE " = " wheel" ]; then
15
15
python -m build
16
16
elif [ " $INSTALL_TYPE " = " archive" ]; then
17
- ARCHIVE=" package.tar.gz"
17
+ ARCHIVE=" /tmp/ package.tar.gz"
18
18
git archive -o $ARCHIVE HEAD
19
19
fi
20
20
21
21
if [ " $INSTALL_TYPE " = " sdist" ]; then
22
- ARCHIVE=$( ls dist/* .tar.gz )
22
+ ARCHIVE=$( ls $PWD / dist/* .tar.gz )
23
23
elif [ " $INSTALL_TYPE " = " wheel" ]; then
24
- ARCHIVE=$( ls dist/* .whl )
24
+ ARCHIVE=$( ls $PWD / dist/* .whl )
25
25
elif [ " $INSTALL_TYPE " = " pip" ]; then
26
- ARCHIVE=" . "
26
+ ARCHIVE=" $PWD "
27
27
fi
28
28
29
29
export ARCHIVE
Original file line number Diff line number Diff line change @@ -18,10 +18,15 @@ if [ -n "$EXTRA_PIP_FLAGS" ]; then
18
18
EXTRA_PIP_FLAGS=${! EXTRA_PIP_FLAGS}
19
19
fi
20
20
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
+ )
25
30
26
31
if [ " $CHECK_TYPE " == " skiptests" ]; then
27
32
exit 0
You can’t perform that action at this time.
0 commit comments