Debian Codegraph @

debian/tests/reproduce-3

raw symbols SCIP
1 #!/bin/bash
2
3 # For reproducible .whl files. See bug ##776026.
4 export SOURCE_DATE_EPOCH=315576060
5
6 # Change to the directory with the setup.py.
7 cd debian/tests/dummy
8
9 # Create the .whl file. Both build it and write it to a temporary directory.
10 python3 setup.py bdist_wheel -b $AUTOPKGTEST_TMP/build-1 -d $AUTOPKGTEST_TMP/wheels-1
11
12 sleep 5
13
14 # Create the .whl file. Both build it and write it to a temporary directory.
15 python3 setup.py bdist_wheel -b $AUTOPKGTEST_TMP/build-2 -d $AUTOPKGTEST_TMP/wheels-2
16
17 # For reproducibility, ensure that the checksums are identical.
18 sum1=`sha256sum $AUTOPKGTEST_TMP/wheels-1/dummy-0.0-py3-none-any.whl | cut -c 1-64`
19 sum2=`sha256sum $AUTOPKGTEST_TMP/wheels-2/dummy-0.0-py3-none-any.whl | cut -c 1-64`
20
21 echo $sum1
22 echo $sum2
23 test $sum1 = $sum2