blob: 1c9cc36b9ede7b310264c4adc392c7797faace05 (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#!/bin/bash -ex
# install script for Travis-CI
pip install -r testsuite/requirements.txt
PYVER=$(python -c 'import sys;print(".".join(str(v) for v in sys.version_info[0:2]))')
if [[ ${PYVER:0:1} == "2" && $PYVER != "2.7" ]]; then
pip install unittest2
fi
if [[ "$WITH_OPTIONAL_DEPS" == "yes" ]]; then
pip install PyYAML pyinotify boto pylibacl Jinja2 mercurial guppy cherrypy python-augeas
if [[ ${PYVER:0:1} == "2" ]]; then
pip install cheetah m2crypto
if [[ $PYVER != "2.7" ]]; then
pip install 'django<1.7' 'South<0.8'
else
pip install django
fi
fi
fi
# Setup the local xml schema cache
download_schema() {
if [[ ! -e "$1" ]]; then
wget -O "$1" "$2"
fi
}
mkdir -p "$HOME/.cache/xml/"
download_schema "$HOME/.cache/xml/XMLSchema.xsd" "http://www.w3.org/2001/XMLSchema.xsd"
download_schema "$HOME/.cache/xml/xml.xsd" "http://www.w3.org/2001/xml.xsd"
cat > "$HOME/.cache/xml/catalog.xml" <<EOF
<?xml version="1.0"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<system systemId="http://www.w3.org/2001/XMLSchema.xsd" uri="$HOME/.cache/xml/XMLSchema.xsd" />
<system systemId="http://www.w3.org/2001/xml.xsd" uri="$HOME/.cache/xml/xml.xsd" />
<nextCatalog catalog="/etc/xml/catalog.xml" />
</catalog>
EOF
|