Python's import situation has driven me to the brink of imsanity

Sivan Greenberg sivan at vitakka.co
Wed Feb 10 14:05:49 EST 2016


not entirely on-topic here, but is distutils still being in active use "in
the wild" ?

-Sivan

On Wed, Feb 10, 2016 at 2:31 AM, Oscar Benjamin <oscar.j.benjamin at gmail.com>
wrote:

> On 8 February 2016 at 00:38,  <dimva13 at gmail.com> wrote:
> > Running python setup.py develop doesn't work, it gives me this error:
> error: invalid command 'develop'
>
> This is presumably because your setup.py script uses distutils rather
> than setuptools: distutils doesn't have the develop command.
>
> > Running pip install -e . does work.
>
> That's because pip "injects setuptools" so that when you import
> distutils in your setup.py your actually importing a monkey-patched
> setuptools. You may as well import setuptools in your setup.py but
> either way the recommended invocation is "pip install -e .".
>
> --
> Oscar
> --
> https://mail.python.org/mailman/listinfo/python-list
>



-- 
Sivan Greenberg
Co founder & CTO
Vitakka Consulting


More information about the Python-list mailing list