manage.py and pyc's

2013-08-09 Thread jdetaeye
The patch in ticket #8280 finds management commands shipped in .pyc, .pyo, .zip, .egg files, etc I find it strange and un-pythonic that the current code uses a walk over the file system, rather than the proper python APIs to discover the contents of packages... Johan -- You received this mes

Re: manage.py and pyc's

2013-07-24 Thread mjl Martin J. Laubach
Well, the sneaky workaround would probably be to ship a totally simple management/commands/foo_command.py that does nothing more than "from only_as_pyc import *". Would that work for your use case? mjl -- You received this message because you are subscribed to the Google Groups "Dja

Re: manage.py and pyc's

2013-07-23 Thread Chris Church
It looks like this issue has been marked as wontfix in https://code.djangoproject.com/ticket/14952 However, I've used the following in manage.py to support running management commands when distributing only .pyc files: https://gist.github.com/cchurch/6067733 On Tue, Jul 23, 2013 at 6:29 PM, J

manage.py and pyc's

2013-07-23 Thread Jan Vilhuber
In our project, we typically deploy our django app without py's, except for a few select ones (manage,py for example). I recently added a few management/commands to a few of the apps in my project, and discovered that manage.py does not find them, as it looks only for .py files (ignoring .pyc's