Generating a pkg config file with distutils

Discussion in 'Python' started by Tycho Andersen, Mar 28, 2012.

  1. Hi all,

    I'm distributing a package which for various legacy reasons needs to
    generate a pkgconfig file from a template (adding version numbers,
    prefixes, etc.) and install the file in the right place
    ($PREFIX/lib/pkgconfig/foo.pc in most cases).

    Currently, I have a rather nasty hack to implement all this, but
    presumably there's a better way to do it. If I could even get the
    installation part (e.g. using the right MANIFEST.in incantations),
    that would be wonderful. Reading the MANIFEST.in docs [1], it's not
    obvious that you can control the install locations of these files
    (i.e., .pc files must be installed to the above location to be
    correctly detected by other packages).

    Is what I want to do possible, or should I continue using my nasty
    hack?

    TIA!

    Tycho

    [1]: http://docs.python.org/distutils/sourcedist.html#commands
     
    Tycho Andersen, Mar 28, 2012
    #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. Jeffy
    Replies:
    2
    Views:
    2,698
    Thomas Weidenfeller
    Sep 10, 2003
  2. mrstephengross
    Replies:
    0
    Views:
    358
    mrstephengross
    Mar 10, 2006
  3. ryles
    Replies:
    3
    Views:
    567
    Piet van Oostrum
    Jul 26, 2009
  4. Johny

    pkg-config and Windows

    Johny, Mar 17, 2010, in forum: Python
    Replies:
    0
    Views:
    887
    Johny
    Mar 17, 2010
  5. Johny

    What is pkg-config for ?

    Johny, Mar 19, 2010, in forum: Python
    Replies:
    2
    Views:
    328
    Lawrence D'Oliveiro
    Mar 22, 2010
Loading...

Share This Page