[Distutils] prefix in bdist_rpm

Pavel Roskin proski at gnu.org
Thu Feb 23 19:16:01 CET 2006


On Thu, 2006-02-23 at 10:04 -0800, Bob Ippolito wrote:
> On Feb 23, 2006, at 9:37 AM, Pavel Roskin wrote:

> > Apparently, distutils is good at allowing to do "something  
> > strange", but
> > not something I want.
> 
> It has no idea what you want, that's why it gives you control over  
> the process.

My whole point is that I don't have such control.

> > But if that's not hard, could bdist_rpm simply ignore those values
> > instead?  Probably even easier.  The only thing that is needed is  
> > to set
> > them to given values in the %install section of the specfile.
> 
> It's not hard per se, but that behavior would be wrong.  If someone  
> wants to build RPMs to install to an alternate location, it should be  
> allowed.

The bdist_rpm section could have its own "prefix" setting in setup.cfg.
In absence of that, the bdist_rpm default should be that same as the rpm
default, called %_prefix and usually equal to /usr.

-- 
Regards,
Pavel Roskin



More information about the Distutils-SIG mailing list