[Distutils] creating rpms of setuptools, sqlobject and formencode
Phillip J. Eby
pje at telecommunity.com
Sat Oct 22 20:39:38 CEST 2005
At 08:08 PM 10/22/2005 +0200, Pau Aliagas wrote:
>On Sat, 22 Oct 2005, Phillip J. Eby wrote:
>
>>>Everything is installed in:
>>>/usr/lib/python2.3/site-packages/setuptools-0.6a5-py2.3.egg/
>>
>>How did you install it there? Via easy_install, or using some other
>>process? I suspect that you installed it some way that didn't include the
>>setuptools.pth file.
>
>I'm the one creating the rpm :) I enclose the spec file.
>What it does is this:
>
>python setup.py build
>python setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT \
> --record=INSTALLED_FILES.tmp
>
>In INSTALLED_FILES.tmp I cannot see any pth file, so it is not included in
>the rpm, as thes are the files it will include.
Hm. Looks like easy_install isn't writing them to the --record file, even
if it's updating them on disk. But it also may not be writing them on
disk, due to the use of the --root option.
There's actually a bigger issue, too, which is that the contents of those
.pth files are going to be based on the --root, rather than where they'll
be really installed on the target system. Ugh.
I think the best thing to do is going to be to follow the experimental
Gentoo egg installation strategy:
http://eggs.gentooexperimental.org/wiki/Overview
which adds install/uninstall scripts that add or remove eggs from a
'gentoo-eggs.pth' file.
I'd happily accept patches for the bdist_rpm command provided by
setuptools, so that setuptools-using packages (including setuptools itself)
can build rpms that update an 'rpm-eggs.pth' file.
More information about the Distutils-SIG
mailing list