If you use
zip with the
--symlinks option, a symlink stored in the zip file will have
stat.S_ISLNK returns True on what Python’s
zipinfo.external_attr >> 16. In practice this is always the bit
0o120000 (octal). The target of the symlink is stored as the contents of that archive member. It is not compressed. That’s all.
Some unix timestamps, uid, gid are stored in a zip extra field. The extra field is not used for symlinks in the amazingly popular Info-Zip. It’s developed on SourceForge but this copy is convenient for linking: