Extend distutils bdist_rpm to support %config?

Discussion in 'Python' started by bwooster47@gmail.com, Mar 9, 2007.

  1. Guest

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

    http://www.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.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, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. zirpu xunre pelxu

    bdist_rpm problems, and my work around.

    zirpu xunre pelxu, Aug 5, 2004, in forum: Python
    Replies:
    1
    Views:
    324
    Anthony Baxter
    Aug 5, 2004
  2. timw.google
    Replies:
    1
    Views:
    529
    Serge Orlov
    May 11, 2006
  3. Replies:
    1
    Views:
    452
    Jérôme Le Bougeant
    Jul 21, 2006
  4. Greg Copeland

    setup.py bdist_rpm help

    Greg Copeland, Apr 17, 2007, in forum: Python
    Replies:
    1
    Views:
    466
    Greg Copeland
    Apr 17, 2007
  5. Miki Tebeka

    bdist_rpm from Ubuntu to CentOS

    Miki Tebeka, Jun 2, 2011, in forum: Python
    Replies:
    0
    Views:
    222
    Miki Tebeka
    Jun 2, 2011
Loading...

Share This Page