forked from astraw/stdeb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest-pypi-install.sh
executable file
·30 lines (25 loc) · 987 Bytes
/
test-pypi-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -e
if [ "$UID" -ne "0" ]; then
echo "$0 must be run as root"
exit 1
fi
# Package with source tarball on PyPI:
pypi-install pyflakes --verbose=2
dpkg --purge python-pyflakes
# This test fails on Ubuntu 12.04 due to what looks like a bug with
# "dh_auto_clean -O--buildsystem=python_distutils" not changing into the
# directory with setup.py and thus its "import prober" fails. That's not
# an stdeb bug. We could run this test on later versions of Debian/Ubuntu.
#
# Package with no source tarball on PyPI: (v 0.6.2, 2009-12-30)
#pypi-install posix_ipc --release=0.6.2 --verbose=2 --allow-unsafe-download
#dpkg --purge python-posixipc
echo "skipping known failure tests"
exit 0
# A pure python package with source tarball on PyPI. (This fails if
# the Debian/Ubuntu original "pyro" package is already
# installed. This should use apt-file to find that binary package is
# "pyro".)
apt-get install pyro # get upstream version
pypi-install Pyro --verbose=2