Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #22260 > unrolled thread

Generating a pkg config file with distutils

Started byTycho Andersen <tycho@tycho.ws>
First post2012-03-27 21:01 -0500
Last post2012-03-27 21:01 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Generating a pkg config file with distutils Tycho Andersen <tycho@tycho.ws> - 2012-03-27 21:01 -0500

#22260 — Generating a pkg config file with distutils

FromTycho Andersen <tycho@tycho.ws>
Date2012-03-27 21:01 -0500
SubjectGenerating a pkg config file with distutils
Message-ID<mailman.1058.1332900122.3037.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web