Commit 1f3c2c35 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Merge branch 'build-in-editable-mode-as-pip-install-workaround' into 'master'

Build in editable mode to avoid copying tree with 'pip install .'

See merge request !23
parents f1ba8067 cb067e11
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -15,6 +15,13 @@ echo "-----------------------------------------------"

# keep this consistent in build-py-project.sh and build-py-project-within-miniconda.sh

# Append --editable to PROJECT_INSTALL_FLAGS, if not there already.
# See: https://gitlab.tiker.net/inducer/ci-support/-/issues/3
# Can be removed after pip 20.1 is released.
if [[ ! $PROJECT_INSTALL_FLAGS =~ (^|[[:space:]]*)(--editable|-e)[[:space:]]*$ ]]; then
    PROJECT_INSTALL_FLAGS="$PROJECT_INSTALL_FLAGS --editable"
fi

rm -Rf .env
rm -Rf build
find . -name '*.pyc' -delete
+7 −0
Original line number Diff line number Diff line
@@ -13,6 +13,13 @@ echo "-----------------------------------------------"

# keep this consistent in build-py-project.sh and build-py-project-within-miniconda.sh

# Append --editable to PROJECT_INSTALL_FLAGS, if not there already.
# See: https://gitlab.tiker.net/inducer/ci-support/-/issues/3
# Can be removed after pip 20.1 is released.
if [[ ! $PROJECT_INSTALL_FLAGS =~ (^|[[:space:]]*)(--editable|-e)[[:space:]]*$ ]]; then
    PROJECT_INSTALL_FLAGS="$PROJECT_INSTALL_FLAGS --editable"
fi

rm -Rf .env
rm -Rf build
find . -name '*.pyc' -delete