On Sep 19, 6:41 am, James Bennett <ubernost...@gmail.com> wrote: > On Fri, Sep 18, 2009 at 10:36 PM, Kyle MacFarlane > > <kylemacfarl...@gmail.com> wrote: > > Everything works fine except when detecting management commands. It > > will only detect commands in the first package in sys.path underneath > > "company.*". Once it has checked one package in the namespace it does > > not look inside any others. > > Custom management commands and setuptools don't mix, period. There may > be cases where they actually work, but the various things setuptools > mangles in the process of supporting things like namespace packages > and zipped eggs just don't really work at all with the way Django > searches for management commands. > > My general advice, as always, is to avoid setuptools like the plague. > > -- > "Bureaucrat Conrad, you are technically correct -- the best kind of correct."
Pip apparently installs namespace packages differently and may work, but I can't get it to work with zc.buildout and the recommended gp.recipe.pip. I cut down my buildout.cfg to be very simple and is basically a copy of the example at http://pypi.python.org/pypi/gp.recipe.pip: [buildout] parts = test1 [test1] recipe = gp.recipe.pip install = project_site interpreter = python But when I run buildout I get the following error: Installing test1. pip install 'import site' failed; use -v for traceback Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named pip While: Installing test1. An internal error occured due to a bug in either zc.buildout or in a recipe being used: Traceback (most recent call last): File "c:\users\kylemac\appdata\local\temp\tmpqnze0- \zc.buildout-1.4.1-py2.5.eg g\zc\buildout\buildout.py", line 1659, in main File "c:\users\kylemac\appdata\local\temp\tmpqnze0- \zc.buildout-1.4.1-py2.5.eg g\zc\buildout\buildout.py", line 532, in install File "c:\users\kylemac\appdata\local\temp\tmpqnze0- \zc.buildout-1.4.1-py2.5.eg g\zc\buildout\buildout.py", line 1203, in _call File "c:\users\kylemac\.buildout\eggs\gp.recipe.pip-0.4-py2.5.egg\gp \recipe\pi p\__init__.py", line 195, in install return Scripts.install(self) File "c:\users\kylemac\.buildout\eggs\zc.recipe.egg-1.2.2-py2.5.egg \zc\recipe\ egg\egg.py", line 132, in install reqs, ws = self.working_set() File "c:\users\kylemac\.buildout\eggs\gp.recipe.pip-0.4-py2.5.egg\gp \recipe\pi p\__init__.py", line 131, in working_set self.pip_install(part_dir, build_dir, src_dir, []) File "c:\users\kylemac\.buildout\eggs\gp.recipe.pip-0.4-py2.5.egg\gp \recipe\pi p\__init__.py", line 101, in pip_install raise RuntimeError('An error occur during pip installation. See %s- log.txt' % self.name) RuntimeError: An error occur during pip installation. See test1-log.txt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---