Repository URL to install this package:
Version:
3.8.5-1+stretch1 ▾
|
.. |
README.md |
exe_with_z64 |
exe_with_zip |
header.sh |
testdata_module_inside_zip.py |
test_zipfile
The test executables in this directory are created manually from header.sh and
the testdata_module_inside_zip.py
file. You must have infozip's zip utility
installed (apt install zip
on Debian).
These are used to test executable files with an appended zipfile, in a scenario
where the executable is not a Python interpreter itself so our automatic
zipimport machinery (that'd look for __main__.py
) is not being used.
If you update header.sh or the testdata_module_inside_zip.py file, rerun the commands below. These are expected to be rarely changed, if ever.
zip -0 zip2.zip testdata_module_inside_zip.py
cat header.sh zip2.zip >exe_with_zip
rm zip2.zip
Redirecting from stdin forces infozip's zip tool to create a zip64.
zip -0 <testdata_module_inside_zip.py >zip64.zip
cat header.sh zip64.zip >exe_with_z64
rm zip64.zip