[Python-Dev] Better support for consuming vendored packages
Steve Holden
steve at holdenweb.com
Sat Mar 24 06:30:35 EDT 2018
On Sat, Mar 24, 2018 at 9:29 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> On 23 March 2018 at 02:58, Gregory Szorc <gregory.szorc at gmail.com> wrote:
>
>> I'd like to start a discussion around practices for vendoring package
>> dependencies. I'm not sure python-dev is the appropriate venue for this
>> discussion. If not, please point me to one and I'll gladly take it there.
>>
>>
> [...]
>
> If it's the main application doing the vendoring, then the following kind
> of snippet can be helpful:
>
> from knights.vendored import shrubbery
> import sys
> sys.path["shrubbery"] = shrubbery
>
> I suspect you meant
>
sys.modules["shrubbery"] = shrubbery
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20180324/215ca6d4/attachment-0001.html>
More information about the Python-Dev
mailing list