Opened 9 years ago

Closed 9 years ago

#1750 closed defect (fixed)

python setup.py install place examples files in /usr/lib/python2.4/site-packages/examples/

Reported by: misc@… Owned by: adrian
Component: Tools Version: master
Severity: minor Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [2821]) Fixed #1750 -- Changed setup.py to exclude 'examples' directory. Thanks, misc@…

comment:2 Changed 9 years ago by erickt@…

  • Resolution fixed deleted
  • Status changed from closed to 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 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [2895]) Fixed #1750 -- Changed setup.py to exclude 'examples.*'

Note: See TracTickets for help on using tickets.
Back to Top