Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#538 closed defect (fixed)

django is not zip_safe

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

Description

When installing on my gentoo system setuptools failed to detect that django wasn't zip safe, so it zipped the egg. This causes django-admin's start(project|app) to fail. Adding

zip_safe = False,

To the parameters in setup.py takes care of it.

Attachments (1)

tugberk1.htm (6.1 KB) - added by tugberk 7 years ago.
tugberk

Download all attachments as: .zip

Change History (3)

comment:1 Changed 9 years ago by adrian

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

Thanks! Fixed in [662]. But, surely, a better long-term solution would be to make Django zip-safe. What other parts aren't zip-safe?

comment:2 Changed 9 years ago by grayrest

Basically anytime you're using the file system to access data files so the templates and whatnot. I won't duplicate PJE's documentation, but the relevant portion is:
http://peak.telecommunity.com/DevCenter/setuptools#accessing-data-files-at-runtime

It seems fairly straightforward. That being said, I'd much rather have other issues addressed than zip safety. :]

Changed 7 years ago by tugberk

tugberk

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