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


Groups > comp.lang.python > #79513

Re: setuptools + data_files = 2

X-Received by 10.66.146.99 with SMTP id tb3mr3386571pab.11.1414071397463; Thu, 23 Oct 2014 06:36:37 -0700 (PDT)
X-Received by 10.140.105.196 with SMTP id c62mr560qgf.38.1414071397156; Thu, 23 Oct 2014 06:36:37 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!h18no9115999igc.0!news-out.google.com!i10ni0qaf.0!nntp.google.com!s7no50278qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Thu, 23 Oct 2014 06:36:37 -0700 (PDT)
In-Reply-To <5447fac2$0$2384$426a74cc@news.free.fr>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=217.46.241.89; posting-account=qpDnJAoAAAAffpfhI2O4BXh9evsC4TaC
NNTP-Posting-Host 217.46.241.89
References <5447fac2$0$2384$426a74cc@news.free.fr>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <7ec70158-2eab-4590-93a6-784ffc8538e4@googlegroups.com> (permalink)
Subject Re: setuptools + data_files = 2
From Simon Kennedy <sffjunkie@gmail.com>
Injection-Date Thu, 23 Oct 2014 13:36:37 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:79513

Show key headers only | View raw


On Wednesday, 22 October 2014 19:43:25 UTC+1, luc2  wrote:
> hello, would you know how to make data_files work in setuptools ?
> i can't figure out how to put datas in the generated .tar.gz

If you're creating an sdist then you'll need to create a MANIFEST.in file in the same folder as setup.py with the following contents

    include share/test_file.txt

If you're creating a bdist (egg or wheel) the parameter name you need is

    package_data={'share': [share/test_file.txt]},

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


Thread

setuptools + data_files = 2 luc2 <luc2@nospam.invalid> - 2014-10-22 18:43 +0000
  Re: setuptools + data_files = 2 Simon Kennedy <sffjunkie@gmail.com> - 2014-10-23 06:36 -0700
    Re: setuptools + data_files = 2 luc2 <luc2@nospam.invalid> - 2014-10-24 11:39 +0000

csiph-web