diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/clean_install.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/clean_install.sh b/tests/clean_install.sh new file mode 100755 index 00000000..f8f80dc7 --- /dev/null +++ b/tests/clean_install.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +# This test was created in +# https://github.com/pypa/setuptools/pull/1050 +# but it really should be incorporated into the test suite +# such that it runs on Windows and doesn't depend on +# virtualenv. Moving to test_integration will likely address +# those concerns. + +set -o errexit +set -o xtrace + +# Create a temporary directory to install the virtualenv in +VENV_DIR="$(mktemp -d)" +function cleanup() { + rm -rf "$VENV_DIR" +} +trap cleanup EXIT + +# Create a virtualenv that doesn't have pip or setuptools installed +wget https://raw.githubusercontent.com/pypa/virtualenv/master/virtualenv.py +python virtualenv.py --no-wheel --no-pip --no-setuptools "$VENV_DIR" +source "$VENV_DIR/bin/activate" + +# Now try to install setuptools +python bootstrap.py +python setup.py install |
