diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2017-07-13 15:22:37 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-07-13 15:22:37 -0400 |
| commit | cf3e1b296a8d7cea519ef07b041c30ec891f9f18 (patch) | |
| tree | 8ddb43f5c7871ef3b892264421bc56cceca32dc1 /tests | |
| parent | 410317331922f1450322db993a1bc86de6ffbee1 (diff) | |
| download | external_python_setuptools-cf3e1b296a8d7cea519ef07b041c30ec891f9f18.tar.gz external_python_setuptools-cf3e1b296a8d7cea519ef07b041c30ec891f9f18.tar.bz2 external_python_setuptools-cf3e1b296a8d7cea519ef07b041c30ec891f9f18.zip | |
Move clean install test to tests dir.
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 |
