Django

Code

Ticket #1750 (closed: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Reported by: misc@mandriva.org Assigned to: adrian
Milestone: Component: Tools
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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/ ?

Attachments

Change History

05/03/06 08:35:03 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

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

05/10/06 23:55:07 changed by erickt@dslextreme.com

  • status changed from closed to reopened.
  • resolution deleted.

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

05/11/06 09:41:43 changed by adrian

  • status changed from reopened to closed.
  • resolution set to fixed.

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


Add/Change #1750 (python setup.py install place examples files in /usr/lib/python2.4/site-packages/examples/)




Change Properties
Action