Commit 09b7e448 authored by Kenneth Reitz's avatar Kenneth Reitz

fix tests

parent e26a0f04
...@@ -54,23 +54,13 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_VERSION* ]]; then ...@@ -54,23 +54,13 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_VERSION* ]]; then
TMPTARDIR=$(mktemp -d) TMPTARDIR=$(mktemp -d)
trap "rm -rf $TMPTARDIR" RETURN trap "rm -rf $TMPTARDIR" RETURN
bpwatch start install_setuptools
# Prepare it for the real world
puts-step "Installing Setuptools ($SETUPTOOLS_VERSION)"
unzip $ROOT_DIR/vendor/setuptools-$SETUPTOOLS_VERSION.zip -d $TMPTARDIR
cd $TMPTARDIR/setuptools-$SETUPTOOLS_VERSION/
python setup.py install
cd $WORKING_DIR
bpwatch stop install_setuptoools
bpwatch start install_pip bpwatch start install_pip
puts-step "Installing Pip ($PIP_VERSION)"
tar zxf $ROOT_DIR/vendor/pip-$PIP_VERSION.tar.gz -C $TMPTARDIR puts-step "Bootstrapping pip"
cd $TMPTARDIR/pip-$PIP_VERSION/ python $ROOT_DIR/vendor/get-pip.py
python setup.py install
cd $WORKING_DIR
bpwatch stop install_pip bpwatch stop install_pip
bpwatch stop prepare_environment bpwatch stop prepare_environment
fi fi
......
[packages] [packages]
requests = "*" maya = "*"
...@@ -5,6 +5,14 @@ testNoRequirements() { ...@@ -5,6 +5,14 @@ testNoRequirements() {
assertCapturedError assertCapturedError
} }
testPipenv() {
compile "pipenv"
assertCaptured "maya"
assertCapturedSuccess
}
testSetupPy() { testSetupPy() {
compile "setup-py" compile "setup-py"
assertCaptured "maya" assertCaptured "maya"
......
This diff is collapsed.
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