Skip to content

[WIP] Add a test that setuptools can be installed in a clean environment #1050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions clean_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/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://github.com/raw/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