[IPython-dev] Help needed: stumped by odd MANIFEST.in/distutils behavior

Fernando Perez fperez.net at gmail.com
Mon Oct 10 16:20:22 EDT 2011

Hey Paul,

On Mon, Oct 10, 2011 at 12:56 PM, Paul Ivanov <pivanov314 at gmail.com> wrote:
> I poked around some more: looks like importing setuptools changes
> distutils.dist.Distribution to point to setuptools.dist.Distribution,
> and also does the same with command.sdist, with setuptools' version
> not implementing user_options like 'manifest-only' (see
> setuptools/dist.py:642-644)

Many thanks for digging this one out.  My distutils-foo is rusty.  I
had the habit of, whenever observing weird behavior where distutils is
deviating from the stated documentation, doing a quick

print 'setuptools' in sys.modules

just to know.  Since setuptools does so much by monkeypatching, once
you see it's been imported you can at least be on the lookout.

I'm actually not sure that we *need* setuptools in the sdist command,
I can't really remember why it was put there.  Does anyone recall?

My instinct would be to *not* use setuptools for sdist, but I don't
want to make that change right now.  There's a good chance we put that
in because we needed it for something...  Can anyone think/remember
why that was the case?



More information about the IPython-dev mailing list