#!/usr/bin/env python -u

Travis Oliphant olipt at mayo.edu
Fri Apr 16 23:59:25 EDT 1999


> 
> So I tend to depend on GNU configure when I'm installing a script.  I
> actually look for Python in the user's environment, then use sed to
> hard-code that path into the scripts before installing them.  Can this
> be done with RPM?

Sure, since RPM is just a series of sh scripts that run while installing a
package.  You could put something in the %post section that did this.
Then the scripts would be set up for whoever ran the rpm command, but not
anyone who didn't have this same enviroment.  This would imply multiple
rpm databases on a single system for different users.  I'm not familiar
with using RPM in this way but I bet it could be done...

Travis






More information about the Python-list mailing list