aboutsummaryrefslogtreecommitdiff
path: root/pyfu/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pyfu/build.sh')
-rw-r--r--pyfu/build.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyfu/build.sh b/pyfu/build.sh
index 2881c55..dea1737 100644
--- a/pyfu/build.sh
+++ b/pyfu/build.sh
@@ -1,5 +1,7 @@
+set -e
+
# Install as a Python package:
-python setup.py install || exit 1
+$PYTHON -m pip install . --no-deps --ignore-installed --no-cache-dir -v
# Documentation:
mkdir -p ${PREFIX}/share/pyfu && cp -p README LICENSE ${PREFIX}/share/pyfu/
@@ -11,7 +13,7 @@ mkdir -p ${PREFIX}/share/pyfu && cp -p README LICENSE ${PREFIX}/share/pyfu/
. ac_iraf_defs
ext_path="${PREFIX}/${extern_dir}"
-mkdir -p "$ext_path" || exit 1
+mkdir -p "$ext_path"
(cd "$ext_path" && ln -s ${SP_DIR}/pyfu .)