From 8f5c431898b2347a582b90922dc2277b5d6bd67c Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 16 Nov 2011 01:11:29 -0200 Subject: [PATCH] Add in a condition for swift tarball builds. Change-Id: I5ec5c0a6e78a3acf69af8680fc1efb533d8e76a7 --- tarball_script.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tarball_script.sh b/tarball_script.sh index 95569074..78403fc3 100755 --- a/tarball_script.sh +++ b/tarball_script.sh @@ -99,7 +99,12 @@ SEPARATOR=${SEPARATOR:-'~'} rm -f dist/*.tar.gz if [ -f setup.py ] ; then - tools/with_venv.sh python setup.py sdist + # swift has no virtualenv information in its tree. + if [ -d .*-venv ] ; then + tools/with_venv.sh python setup.py sdist + else + python setup.py sdist + fi # There should only be one, so this should be safe. tarball=$(echo dist/*.tar.gz)