00-install-tailslib 513 Bytes
Newer Older
anonym's avatar
anonym committed
1
2
3
4
5
6
7
#!/bin/sh

set -e
set -u

echo "Installing the tailslib python library"

8
9
# Import ensure_hook_dependency_is_installed() and
# strip_nondeterminism_wrapper()
10
11
. /usr/local/lib/tails-shell-library/build.sh

12
13
ensure_hook_dependency_is_installed python3-setuptools

anonym's avatar
anonym committed
14
15
16
17
(
    cd /tmp/pythonlib
    python3 setup.py clean
    python3 setup.py install
18
19

    package_glob_pattern="/usr/local/lib/python3.*/dist-packages/Tailslib*.egg"
20
    strip_nondeterminism_wrapper --type zip ${package_glob_pattern}
anonym's avatar
anonym committed
21
22
)
rm -rf /tmp/pythonlib