Commit 9521a7e9 authored by Matt Wala's avatar Matt Wala
Browse files

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

parent 280079bd
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 [[ ! $(printf "%s\n" "$PROJECT_INSTALL_FLAGS" | grep -w -- --editable) ]]; 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 [[ ! $(printf "%s\n" "$PROJECT_INSTALL_FLAGS" | grep -w -- --editable) ]]; then
    PROJECT_INSTALL_FLAGS="$PROJECT_INSTALL_FLAGS --editable"
fi

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