Opened 19 years ago
Closed 19 years ago
#1750 closed defect (fixed)
python setup.py install place examples files in /usr/lib/python2.4/site-packages/examples/
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Tools | Version: | dev |
Severity: | minor | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
While trying to package almost latest svn version ( revision2816 ) for testing purposes, i have seen that python setup.py place examples in /usr/lib/python2.4/site-packages/examples/.
Could they be moved in django/, as this is likely to cause problem with other python modules that would do the same, or maybe not installed at all ( or with the documentation ), as example code should not be in /usr/lib/python2.4/ ?
Change History (3)
comment:1 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 19 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
this is still installing examples.help. Looking at find_packages, it doesn't filter out submodules, so doing something like "find_packages(exclude=examples)" I don't believe is sufficient to fix this problem. Perhaps a "[p for p in find_packages() if not p.startswith('examples')]"?
-e
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
(In [2821]) Fixed #1750 -- Changed setup.py to exclude 'examples' directory. Thanks, misc@…