From 89f3bd0dae5df2ef308b880dbfb6597c681f3834 Mon Sep 17 00:00:00 2001 From: Monsyne Dragon Date: Wed, 16 Sep 2015 17:17:52 +0000 Subject: [PATCH] Fix incorrect editable flag when packaging. 'editable' flag was being mistakenly set while packaging. Fixed that not to happen. STv3 packages are still editable in development mode, however. Change-Id: I4587477ca39d4026381af22cc9cc32b6ed2e76d9 --- build.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index db721e3..f911bf8 100755 --- a/build.sh +++ b/build.sh @@ -95,6 +95,14 @@ pip install librabbitmq # Needed by pyrax: pip install pbr + +if [[ "$PACKAGE" = true ]] +then + BUILDFLAGS="" +else + BUILDFLAGS="-e" +fi + if [[ "$QUICK" = false || "$PACKAGE" = true ]] then for file in $SOURCE_DIR/* @@ -102,7 +110,7 @@ then echo "----------------------- $file ------------------------------" cd $file rm -rf build dist - pip install --force-reinstall -e . + pip install --force-reinstall $BUILDFLAGS . cd ../.. done fi