[Python-Dev] Feature request: Change a Dependency Package Version During Package Initiation (original) (raw)
Daniel Holth dholth at gmail.com
Fri May 17 11:38:55 EDT 2019
- Previous message (by thread): [Python-Dev] Feature request: Change a Dependency Package Version During Package Initiation
- Next message (by thread): [Python-Dev] Feature request: Change a Dependency Package Version During Package Initiation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This sounds exactly like what people used to do with eggs. You could have multiple versions of a package on the path as eggs and then require a version at runtime. The approach has problems. Ruby also abandoned a strategy where random app code depends on package management code at runtime.
One better strategy is to set up a python path in a wrapper script.
On Fri, May 17, 2019, 11:27 Brett Cannon <bcannon at gmail.com> wrote:
Thanks for the idea but there are currently no plans to support such a feature. If you would like to see it then you will need to write a PEP with a proof-of-concept to demonstrate how you would expect such a feature to work.
On Fri., May 17, 2019, 07:55 Q via Python-Dev, <python-dev at python.org> wrote:
A lot of the Python code we use in production are used directly as imports in other python distributions (such as the python comes with the finite element software Abaqus and MSC Marc), many packages (such as matplotlib, numpy) that may have varying versioned dependencies.
I was wondering if this could be expanded to allow a version to be set within a package and have that propagate to all modules in that package. For example in the root init.py if I set multiversion(tornado, 2.2.1) then all modules in that package will use tornado 2.2.1 when I import tornado. See a relevant issue on github: https://github.com/mitsuhiko/multiversion/issues/1 Thank you! Qiang
Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/brett%40python.org
Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/dholth%40gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20190517/7e8387a0/attachment.html>
- Previous message (by thread): [Python-Dev] Feature request: Change a Dependency Package Version During Package Initiation
- Next message (by thread): [Python-Dev] Feature request: Change a Dependency Package Version During Package Initiation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]