Add in a condition for swift tarball builds.

Change-Id: I5ec5c0a6e78a3acf69af8680fc1efb533d8e76a7
This commit is contained in:
Monty Taylor
2011-11-16 01:11:29 -02:00
parent bb8e0181f3
commit 8f5c431898

View File

@@ -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)