Commit f8cb9c65 authored by Alex Chan's avatar Alex Chan

Add a test that setuptools can be installed in a clean environment

parent f69469b1
......@@ -27,6 +27,9 @@ script:
#- python -m tox
- tox
# Check that setuptools can be installed in a clean environment
- ./clean_install.sh
deploy:
provider: pypi
# Also update server in setup.cfg
......
#!/usr/bin/env bash
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment