Commit 158b83c2 authored by intrigeri's avatar intrigeri
Browse files

Merge branch 'bugfix/15400-python-lib-breaks-reproducibility' into stable (Fix-committed: #15400)

parents 821bb4c5 a867dfd8
......@@ -5,7 +5,7 @@ set -u
echo "Installing the tailslib python library"
# Import ensure_hook_dependency_is_installed()
# Import ensure_hook_dependency_is_installed() and strip_nondeterminism_wrapper()
. /usr/local/lib/tails-shell-library/build.sh
ensure_hook_dependency_is_installed python3-setuptools
......@@ -14,5 +14,12 @@ ensure_hook_dependency_is_installed python3-setuptools
cd /tmp/pythonlib
python3 setup.py clean
python3 setup.py install
package_glob_pattern="/usr/local/lib/python3.*/dist-packages/Tailslib*.egg"
if [ ! -f ${package_glob_pattern} ]; then
echo "Cannot find Tailslib Python package \"${package_glob_pattern}\"" >&2
exit 1
fi
strip_nondeterminism_wrapper --type zip "$(realpath ${package_glob_pattern})" 2>/dev/null
)
rm -rf /tmp/pythonlib
Supports Markdown
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