Le 2020-01-16 11:18, Felix Schwarz a écrit :
Am 15.01.20 um 23:11 schrieb Victor Stinner:
This solution is well supported by unmodified Python: it's part of the
default sys.path search path:
$ python3
Python 3.7.6 (default, Dec 19 2019, 22:52:49)
import sys; sys.path
['', '/usr/lib64/python37.zip', ...]
It's the second item of sys.path ;-)
Also CPython provides an "embedded" variant in the downloads (IIRC for
Windows, everything in a zip file without installer) which provides its
standard library in a zip file by default.
The standard library in these zip files is only a subset of the regular
stdlib
so that might be a good starting point to see which modules could be
zipped
without modification.
If we start messing with the Python tree it would be nice to put each
shared python component in a separate zip/xz/whatever, and allow
versioning those archives
(ie use the highest semver zip present unless the code explicitely
requests another version, and this version is available on the
filesystem)
That would heal the breach between venv users and Fedora/rpm. We’re
alienating a lot of users, because un-versioned python components, do
not permit the version divergence, some third party software requires
Regards,
--
Nicolas Mailhot
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx