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


Groups > comp.lang.python > #22260

Generating a pkg config file with distutils

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <tycho@tycho.ws>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.035
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; '[1]:': 0.09; 'distributing': 0.09; 'nasty': 0.09; 'subject:file': 0.09; 'template': 0.15; 'currently,': 0.16; 'subject:distutils': 0.16; 'all,': 0.18; 'received:209.85.210.174': 0.20; 'received:mail- iy0-f174.google.com': 0.20; 'legacy': 0.22; 'header:User-Agent:1': 0.23; 'installed': 0.25; 'install': 0.25; 'skip:( 20': 0.27; '(i.e.,': 0.27; 'subject:with': 0.28; 'file': 0.29; 'installation': 0.30; 'received:209.85': 0.32; 'received:209.85.210': 0.32; 'received:google.com': 0.32; 'etc.)': 0.32; 'possible,': 0.33; 'could': 0.34; 'url:python': 0.34; 'reading': 0.34; 'received:209': 0.35; 'should': 0.35; 'hack': 0.35; 'received:99': 0.35; 'version': 0.36; "i'm": 0.36; 'but': 0.36; 'url:org': 0.36; 'charset:us-ascii': 0.36; 'rather': 0.38; 'to:addr:python-list': 0.39; 'to:addr:python.org': 0.40; 'content- disposition:inline': 0.62; 'better': 0.63; 'most': 0.63; 'numbers,': 0.66; 'obvious': 0.81; 'presumably': 0.91
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent:x-gm-message-state; bh=3PJfTypPi6T+kURl7YrD4NyLr/h8xhcTCnVBAVqjpl8=; b=YZAJnCscbxg334zf9TcEYqowjJPiIX6ArU5hXBPD9j2pySit/8Xk++J8X4eXAxHsBa W0srwVZ4IGJOcKWY9Qfbte6TuaPq4m57bp6NexNoMRaq7hcq+QrEo40sPFnxfqbJ8WJJ HbgB78kaeJoBuvIqeZFFIJxRCNSu9C73Pl6144KgHG/LqA1r/8aiCq57dJ+Oj+Af3NN/ p/d9JR9DJTl08PM79iqZWcH/20doO0UMJAuqMP3dHEMf8vdH0FmPuDZjKKdrJ2tSUqAp rNlv4/8WhSkdTA6mkVpN3CEPII1ChNS1l1is4mddFUKpyp5dsuEvt5ZzT9wBkB63Bw2N B9Ng==
Date Tue, 27 Mar 2012 21:01:32 -0500
From Tycho Andersen <tycho@tycho.ws>
To python-list@python.org
Subject Generating a pkg config file with distutils
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.21 (2010-09-15)
X-Gm-Message-State ALoCoQnC7lAa2EaZyxZPKfl/oVxECisfAw7wekt7rCqkbTHMXFVdRMbmQneqWmqyMdlq1AR03k9s
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1058.1332900122.3037.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1332900122 news.xs4all.nl 6858 [2001:888:2000:d::a6]:45273
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:22260

Show key headers only | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web