[Distutils] pip install from source dir??

Erik Bray erik.m.bray at gmail.com
Sat Oct 3 00:37:00 CEST 2015


On Fri, Oct 2, 2015 at 5:39 PM, Donald Stufft <donald at stufft.io> wrote:
> ``pip install path/to/directory/with/setup.py/in/it/``

In particular I install most of my packages from source these days by
cd'ing into the source and

$ pip install .

That's all it takes.  Works with -e too.

Erik

> On October 2, 2015 at 5:38:29 PM, Chris Barker (chris.barker at noaa.gov) wrote:
>> I can't seem to find a way to pip install from a source dir -- not a
>> tarball.
>>
>> Why would I want to do that?
>>
>> In this case, it's because I'm trying to build conda packages for python
>> packages that have compiled C code, and are not using setuptools.
>>
>> On Windows, you need to use setuptools in order to use the "MS compiler for
>> Python 2.7". So a straight "setup.py build" fails.
>>
>> But pip injects setuptools, so that "pip install" does work. But conda has
>> already unpacked the source distribution, so I'd like to point pip at that,
>> and can't find a way to do that (I could have sworn it was possible...)
>>
>> Do I have to build an sdist, and then point pip at that??
>>
>> -CHB
>>
>>
>>


More information about the Distutils-SIG mailing list