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


Groups > comp.lang.python > #79513

Re: setuptools + data_files = 2

Newsgroups comp.lang.python
Date 2014-10-23 06:36 -0700
References <5447fac2$0$2384$426a74cc@news.free.fr>
Message-ID <7ec70158-2eab-4590-93a6-784ffc8538e4@googlegroups.com> (permalink)
Subject Re: setuptools + data_files = 2
From Simon Kennedy <sffjunkie@gmail.com>

Show all headers | 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