Skip to content

cannot handle python zip archives

strip-nondeterminism cannot handle executable python zip archives that are used in openSUSE's opae package.

Here is a sample __main__.py

#!/usr/bin/python3
# zip pyzip.zip __main__.py ; head -1 __main__.py | cat - pyzip.zip > pyzip ; chmod a+x pyzip
print("Hello World")

I also tried using strip-nondeterminism -t zip and it did normalize timestamps, but lost the shebang in the process.

Edited by Bernhard M. Wiedemann