[Distutils] Python module for use in ‘setup.py’ but not to install

Carl Meyer carl at meyerloewen.net
Mon Jan 19 19:00:17 CET 2015


On 01/19/2015 12:39 AM, Nick Coghlan wrote:
> On 19 January 2015 at 11:59, Ben Finney <ben+python at benfinney.id.au> wrote:
>> Nick Coghlan <ncoghlan at gmail.com> writes:
> I actually misunderstood your question. If you're just after the
> ability to say "I want to include this file in the sdist, but not in
> the built wheel file or installed distribution" (as I now believe you
> are), then you're in the implementation defined world of the
> significantly underspecified sdist format. I believe setting that up
> actually *is* possible already, but have no idea what incantation
> you'll need to pass to setuptools to make it do it (and the docs are
> unlikely to be a reliable guide).

This is actually quite easy, its a distutils feature not a setuptools
one, and it works as documented. Just put the file in MANIFEST (or add a
MANIFEST.in rule matching it), but don't reference it in any of the
various setup.py kwargs that cause things to be installed.

Carl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150119/dcc16d0b/attachment-0001.sig>


More information about the Distutils-SIG mailing list