Code

Opened 5 years ago

Closed 5 years ago

#11979 closed (invalid)

build omits django/conf/locale

Reported by: jbergstroem Owned by: nobody
Component: Core (Other) Version: 1.1
Severity: Keywords: locale install test
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

While working with a test failure in the Django test suite, I found out that a "python setup.py build" will omit django/conf/locale from the package.
This is the result of tree walk omitting directories without a init.py (see setup.py:53-60).
There are a couple of ways to solve this (where adding a init.py to django/conf/locale/ would be the laziest), so you guys will probably sort it out.

(btw, should there be a "Install/setup" component?)

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by jbergstroem

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

And with init.py I of course meant __init__.py

comment:2 Changed 5 years ago by ubernostrum

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

As of Python 2.6, setup.py build only places Python modules and and C extensions into the build directory, and does not deal with anything else; as such this is a (documented) limitation of distutils, and I don't think we'll be mis-labeling our locale data as code to try to work around it.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.