[Distutils] Re: bdist_pkgtool attempt

Greg Ward gward@starship.beopen.com
Wed Aug 30 20:01:02 2000


On 29 August 2000, Harry Henry Gebel said:
> The rpms are set up to be relocatable, although I have never actually tried
> to relocate one; it should work though as long as your python installation
> was relocated to the same place (or at any rate as long as the relocated
> site-packages directory is in your path.)

Yep: I verified this with the Distutils' own RPM; it relocated just fine,
even though Red Hat's Python RPM isn't relocatable:

  # rpm -ihv --prefix=/tmp/usr python-1.5.2-13.i386.rpm 
  error: package python is not relocateable

But:

# rpm -ihv --prefix=/tmp/usr Distutils-0.9.2pre-1.noarch.rpm 
Distutils                   ##################################################
# rpm -ql Distutils   
/tmp/usr/doc/Distutils-0.9.2pre
...
/tmp/usr/lib/python1.5/site-packages/distutils/__init__.py
/tmp/usr/lib/python1.5/site-packages/distutils/__init__.pyc
/tmp/usr/lib/python1.5/site-packages/distutils/archive_util.py
/tmp/usr/lib/python1.5/site-packages/distutils/archive_util.pyc
...

Perfect!

        Greg