Re: [Distutils] Installing header files with setuptools

2010-03-04 Thread James Porter
On Wed, 2010-03-03 at 08:41 -0500, Carl Meyer wrote: > James Porter wrote: > > Hm. In that case, is there an easy way to get install_headers to run > > when installing via easy_install (or pip) *without* passing special > > arguments to it? > > Have you tried pip? Pip always uses --single-version-

Re: [Distutils] Installing header files with setuptools

2010-03-04 Thread James Porter
On Wed, 2010-03-03 at 17:30 -0500, Carl Meyer wrote: > Yeah, that does appear to be a bug in pip, I've reported it at > http://bitbucket.org/ianb/pip/issue/73/header-files-installed-to-wrong-location. > And I think you have the right fix, too; that header location hack > should only happen if actua

Re: [Distutils] Installing header files with setuptools

2010-03-03 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James Porter wrote: > This works, but it installs the headers in a surprising place. With the > "prefix" scheme, the headers end up in `pwd`/lib/include. With the > "home" scheme, the headers end up in /lib/python/lib/include. > > In either case I'd e

Re: [Distutils] Installing header files with setuptools

2010-03-03 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James Porter wrote: > Hm. In that case, is there an easy way to get install_headers to run > when installing via easy_install (or pip) *without* passing special > arguments to it? Have you tried pip? Pip always uses --single-version-externally-managed

Re: [Distutils] Installing header files with setuptools

2010-03-02 Thread James Porter
On 3/3/2010 12:02 AM, Phillip J. Eby wrote: Egg-based installs don't include headers. However, if you use the --root or --single-version-externally-managed options to "setup.py install", a backwards-compatible, non-egg-based installation is done, and the headers should be included in that case. T

Re: [Distutils] Installing header files with setuptools

2010-03-02 Thread Phillip J. Eby
At 11:30 PM 3/2/2010, James Porter wrote: Perhaps this is a bug or perhaps I'm just doing it wrong, but I can't figure out a good way to install C header files as part of a setuptools project. With distutils, there's a "headers" argument to setup() that installs the header files in their prop

[Distutils] Installing header files with setuptools

2010-03-02 Thread James Porter
Perhaps this is a bug or perhaps I'm just doing it wrong, but I can't figure out a good way to install C header files as part of a setuptools project. With distutils, there's a "headers" argument to setup() that installs the header files in their proper spot, but setuptools ignores this. It l