When the Python binary is executed, it attempts to determine its Maintenance, raise reliability, and be more easily available to all Years of experience with existing third-party tools can lower Windows platforms that do support them, creating them often requiresĪ virtual environment mechanism integrated with Python and drawing on The PYTHONHOME environment variable, Python’s only existingīuilt-in solution for virtual environments, requiresĬopying/symlinking the entire standard library into every environment.Ĭopying the whole standard library is not a lightweight solution, andĬross-platform support for symlinks remains inconsistent (even on Python dereferences a symlinked executable before searching for (Virtualenv must copy the binary in order to provide isolation, as To perform a delicate boot-strapping dance at every startup. Set of standard-library modules into the virtual environment in order Python’s site module and manually symlink/copy an ever-changing Which does copy the Python binary, is forced to duplicate much of Provide reliable isolation from system site directories. Not copy the Python binary into the virtual environment, cannot System-administrator access, and automated testing of Python softwareĪcross multiple Python versions, among other uses.Įxisting virtual environment tools suffer from lack of support from Virtual environments are already widely used for dependency managementĪnd isolation, ease of installing and using Python packages without Virtual-environment tools, primarily Ian Bicking’s virtualenv. The utility of Python virtual environments has already been wellĮstablished by the popularity of existing third-party Python packages in its site directories, but shares the standard Python versions) and can have its own independent set of installed Its own Python binary (allowing creation of environments with various “virtual environments” with their own site directories, optionally This PEP proposes to add to Python a mechanism for lightweight
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |