[Distutils] Extracting distutils into setuptools
Donald Stufft
donald at stufft.io
Wed Sep 27 09:35:41 EDT 2017
On Sep 27, 2017, at 5:37 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
>
> pip's trick of injecting setuptools into a process to change the
> behaviour of distutils imports continues to work
I suspect this might be difficult, but I haven’t actually tried it. Our trick (and really setup tools itself relies on this too) is that setuptools monkey patches distutils at runtime to make distutils into setuptools. It only has to patch a few bits and pieces right now, but I suspect that if this happened it’d have to monkey patch the entire namespace. It would probably also break people who mix and match imports from setuptools and distutils.
Of course, maybe it won’t! Won’t know until we try it I suppose.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20170927/34f38028/attachment.html>
More information about the Distutils-SIG
mailing list