<div dir="auto">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.<div dir="auto"><br></div><div dir="auto">One better strategy is to set up a python path in a wrapper script.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 17, 2019, 11:27 Brett Cannon <<a href="mailto:bcannon@gmail.com">bcannon@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">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.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri., May 17, 2019, 07:55 Q via Python-Dev, <<a href="mailto:python-dev@python.org" target="_blank" rel="noreferrer">python-dev@python.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u><div><div style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10pt"><div>A lot of the Python code we use in production are used directly as imports in other python<br></div><div>distributions (such as the python comes with the finite element software Abaqus and MSC Marc), many<br></div><div>packages (such as matplotlib, numpy) that may have varying versioned dependencies.<br></div><div><br></div><div>I was wondering if this could be expanded to allow a version to be set within a package and have<br></div><div>that propagate to all modules in that package. For example in the root init.py if I set<br></div><div>multiversion(tornado, 2.2.1) then all modules in that package will use tornado 2.2.1 when I import<br></div><div>tornado.<br></div><div><br></div><div>See a relevant issue on github:<br></div><div><a href="https://github.com/mitsuhiko/multiversion/issues/1" rel="noreferrer noreferrer" target="_blank">https://github.com/mitsuhiko/multiversion/issues/1</a><br></div><div><br></div><div>Thank you!<br></div><div>Qiang<br></div></div><br></div>_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" rel="noreferrer noreferrer" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/brett%40python.org" rel="noreferrer noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/brett%40python.org</a><br>
</blockquote></div>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank" rel="noreferrer">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/dholth%40gmail.com" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/dholth%40gmail.com</a><br>
</blockquote></div>