This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Distutils doesn't pick up all the files it should.
Type: behavior Stage: resolved
Components: Distutils, Distutils2 Versions: Python 3.1, Python 3.2, Python 2.7, 3rd party
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: tarek Nosy List: akitada, alexis, eric.araujo, mwm, tarek
Priority: normal Keywords: easy

Created on 2004-12-11 01:22 by mwm, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg60616 - (view) Author: Mike Meyer (mwm) Date: 2004-12-11 01:22
Distutils doesn't pick up files specified in setup.py that it knows
about.  For instance, files listed on the depends keyword of the
Extension class don't get included in a source distribution, or copied
to the build directory when building a binary distribution. The
data-files keyword to the setup function reportedly suffers the same
fate.

msg81460 - (view) Author: Akira Kitada (akitada) * Date: 2009-02-09 15:26
I don't think that's not depends keyword is used for.
I assume explanation on issue5158 is the way that "depends" is supposed
to be used.
msg103113 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-04-14 08:37
Hello.

(If this comes out of the blue, since the bug was opened years ago, read http://bugs.python.org/issue1083299.)

Akira is right about “depends”. Regarding “data_files”, if they’re not picked up it’s a bug. Mike, can you still reproduce it with current Python versions?

Reference: http://docs.python.org/distutils/setupscript#installing-additional-files

(Not assigning this to Distutils2 since it will have a different behavior with respect to data files, and because it’s really a bug to fix in Distutils. There can’t be any tool that depends on this bug, right?)

Regards
msg114989 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-08-26 15:29
@Éric can you please select the appropriate stage, component(s) or version(s) as you see fit, thanks.
msg114991 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-08-26 15:36
Setting all three branches that accept bug fixes. Someone coming here thanks to the easy keyword could write a unit test, otherwise I’ll do it and adjust versions as needed.
msg137976 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-06-09 14:44
There are tests for data_files, they are indeed included.  Please reopen if you can reproduce the bug.
History
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41309
2011-06-09 14:44:29eric.araujosetstatus: open -> closed
resolution: out of date
messages: + msg137976

stage: test needed -> resolved
2011-02-13 15:56:39eric.araujosetnosy: - BreamoreBoy
components: + Distutils2
2011-02-13 15:55:13alexissetnosy: + alexis
components: - Distutils2
2010-09-30 00:01:29eric.araujosetversions: + 3rd party
2010-08-26 15:36:17eric.araujosetversions: + Python 3.1, Python 2.7, Python 3.2
nosy: mwm, tarek, eric.araujo, akitada, BreamoreBoy
messages: + msg114991

components: + Distutils2
keywords: + easy
stage: test needed
2010-08-26 15:29:52BreamoreBoysetassignee: tarek

messages: + msg114989
nosy: + BreamoreBoy
2010-04-14 08:37:26eric.araujosettype: behavior

messages: + msg103113
nosy: + eric.araujo
2009-02-09 15:26:17akitadasetnosy: + tarek, akitada
messages: + msg81460
2004-12-11 01:22:25mwmcreate