File::S...::pyzip(3)

πŸ“¦ version 1.14.1, in nixos 26.05, nixpkgs unstable

πŸ’– 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