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.
Created on 2012年02月24日 14:46 by nadeem.vawda, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| recursive-include.diff | nadeem.vawda, 2012年02月24日 14:46 | |||
| Messages (4) | |||
|---|---|---|---|
| msg154137 - (view) | Author: Nadeem Vawda (nadeem.vawda) * (Python committer) | Date: 2012年02月24日 14:46 | |
As I understand it, a MANIFEST.in directive: recursive-include foo bar.* is meant to match files under foo for with names beginning with "bar.". However, the actual regex that is generated for this line is: r'^foo/.*bar\.[^/]*\Z(?ms)' which matches any filename under foo that contains "bar." anywhere in the base filename. For example, if foo contains files bar.py and test_bar.py, then the pattern will match both filenames. Is this the intended behaviour? I would have expected it to only match bar.py. If the desired behavior is what I expected (and not how it currently works), then the desired regex is: r'^foo/(.*/)?bar\.[^/]*\Z(?ms)' The attached patch (against 2.7) implements this change. It is dependent on the fix for issue 6884. I have tested it on both Linux and Windows. |
|||
| msg154187 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2012年02月25日 05:45 | |
Thanks, will look into it. |
|||
| msg367971 - (view) | Author: Marius Gedminas (mgedmin) * | Date: 2020年05月03日 14:00 | |
For the record, this is still a bug in Python 3.8 distutils (and it affects global-(include|exclude) as well), but it's been fixed in setuptools, so it shouldn't affect people writing MANIFEST.in files in 2020. |
|||
| msg386266 - (view) | Author: Steve Dower (steve.dower) * (Python committer) | Date: 2021年02月03日 18:07 | |
Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils. If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:27 | admin | set | github: 58314 |
| 2021年02月03日 18:07:59 | steve.dower | set | status: open -> closed nosy: + steve.dower messages: + msg386266 resolution: out of date stage: patch review -> resolved |
| 2020年05月03日 14:00:22 | mgedmin | set | nosy:
+ mgedmin messages: + msg367971 |
| 2012年02月25日 05:45:21 | eric.araujo | set | versions:
+ 3rd party nosy: + alexis messages: + msg154187 assignee: eric.araujo components: + Distutils, Distutils2 |
| 2012年02月24日 14:47:24 | nadeem.vawda | set | dependencies:
+ Impossible to include file in sdist that starts with 'build' on Win32 stage: needs patch -> patch review |
| 2012年02月24日 14:46:34 | nadeem.vawda | create | |