File::S...::pyzip(3)
π ABOUT π
okay bestie, welcome to File::S...::pyzip(3) β a User Contributed Perl Documentation page, and the whole vibe is literally this: Python supports running .zip'd .py files. no cap. πβ¨
Here's the iconic little sequence, exactly as it goes:
$ cat __main__.py
#!/usr/bin/python3
print("Hello World")
$ zip pyzip.zip __main__.py
$ head -1 __main__.py | cat - pyzip.zip > pyzip
$ chmod a+x pyzip
The way these .zip files need special handling so the shebang doesn't get mangled? yeah, that's the whole thing β they require special handling to not mangle the shebang. π
π¦ DEPRECATION PLAN π¦
Lowkey the deprecation plan is unclear, bestie β because many tools can, after all, generate these .zip files. so that's the tea. π«Ά
thatβs the page, babe β source/version perl v5.42.3, dated 1980-01-01, and the manual is File::S...::pyzip(3). ππ
π¦ where this page comes from
- nixos 26.05: perl5.42.3-strip-nondeterminism 1.14.1
- nixpkgs unstable: perl5.42.3-strip-nondeterminism 1.14.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms