473,467 Members | 1,549 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Extend distutils bdist_rpm to support %config?

Is there any way to get the functionality of the %config RPM directive
using python distutils?

http://www.rpm.org/max-rpm/s1-rpm-in...irectives.html

%config /etc/foonly

This will save the current file as fooonly.rpmsave if the file is
different from the one in the package, so users can prevent their
changes from being lost.

I looked at the distutils/command/bdist_rpm.py, it supports creation
of the %files keyword, but I did not see anything about %config,
presumably because distutils does not support that "config file
install" concept of RPM? Is there any other way to get this done using
distutils, for a setup.py that installs a python script (not a module)?

Mar 9 '07 #1
0 926

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jeremy Sanders | last post by:
I've searched in vain for ages on the web about this problem. I'm trying to generate an rpm for the "numarray" python package. The catch is the system is a RedHat 7.3 system, so I need to use the...
1
by: zirpu xunre pelxu | last post by:
python setup.py bdist_rpm # eventually complains about the extra -debuginfo package. my work around: in the package dir create .rpmmacros with just these lines:
1
by: Terry Hancock | last post by:
Some time ago, I got the idea that I wanted to build image resources from vector graphic originals, instead of marshalling hundreds of tiny little icon images by hand. I wrote "BuildImage" to do...
3
by: Mike Meyer | last post by:
I've got a package that includes an extension that has a number of header files in the directory with the extension. They are specified as "depends = " in the Extension class. However, Distutils...
0
by: bwooster47 | last post by:
I have a simple python script that I need to create a kit for, and it has one config file. This is for Unix only, and very restricted use, so here's my relevant setup.py: setup(....., scripts=,...
2
by: RickMuller | last post by:
I really appreciate the ease that the distutils make distributing Python modules. However, I have a question about using them to distribute non-Python (i.e. text) data files that support Python...
9
by: seberino | last post by:
I have been using distuils for a while and was wondering when Python Eggs (new project) is better? So basically Python Eggs precompiles and compresses binaries for you so you just have to load...
4
by: Gary Jefferson | last post by:
My setup.py (with extension) seems to work great for build and install, but for bdist_rpm, compilation of the extension fails because some of the headers needed to build the extension aren't in the...
3
by: Gary Jefferson | last post by:
I've got a python extension that comes with its own standard autoconf/ automake system, and I can "python setup.py build" just fine with it as long as I have previously done "./configure" in that...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.