Skip to content

Commit fdea45f

Browse files
committed
Add tests for installing into a completely clean virtual environment.
1 parent 373c4d7 commit fdea45f

File tree

2 files changed

+2605
-0
lines changed

2 files changed

+2605
-0
lines changed

unit/test_clean_install.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
# Tests that matplotlib can install into a completely clean virtual
4+
# environment.
5+
6+
set -e
7+
cd ..
8+
rm -rf build
9+
rm -rf numpy*
10+
rm -rf python.tmp
11+
python unit/virtualenv.py python.tmp
12+
python.tmp/bin/python setup.py install
13+
python.tmp/bin/python -c "import matplotlib"
14+
rm -rf python.tmp
15+
16+
# Tests that pip works
17+
18+
rm -rf build
19+
rm -rf numpy*
20+
rm -rf python.tmp
21+
python unit/virtualenv.py python.tmp
22+
python.tmp/bin/pip install .
23+
python.tmp/bin/python -c "import matplotlib"
24+
rm -rf python.tmp

0 commit comments

Comments
 (0)