first time easy_install won't compile the catalogs
|Reported by:||Christian Boos||Owned by:||Jun Omae|
By doing a few test installations, I noticed a strange effect: for a new Python installation or for a new virtualenv having just setuptools and Babel,
easy_install Trac calls the appropriate
install_lib step but this fails to trigger a
compile_catalog step (r9638 and r9763).
This can be easily reproduced, in a fresh Python environment having only setuptools and Babel installed so far:
$ tar xvfz Trac-0.12.1.tar.gz $ cd Trac-0.12.1 $ python setup.py -v bdist_egg ... running bdist_egg running egg_info writing requirements to Trac.egg-info/requires.txt writing Trac.egg-info/PKG-INFO writing top-level names to Trac.egg-info/top_level.txt writing dependency_links to Trac.egg-info/dependency_links.txt writing entry points to Trac.egg-info/entry_points.txt reading manifest file 'Trac.egg-info/SOURCES.txt' writing manifest file 'Trac.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build ...
Whereas if the install is actually an upgrade, then it works as expected (e.g.
easy_install Trac==0.12; easy_install -U Trac==0.12.1):
... running install_lib running compile_catalog_js compiling catalog 'trac/locale/sl/LC_MESSAGES/messages-js.po' to 'trac/locale/sl/LC_MESSAGES/messages-js.mo' ...
I suspect the
from trac.util.dist import get_l10n_js_cmdclass line to fail in the first situation. Debugging this shows the following error:
No module named genshi.builder… The
compile_catalog_js step indeed requires Genshi so this is not a side effect error we could try to ignore. With setuptools, the
bdist_egg step is executed before the Genshi package gets installed. That actually happens at the very end of
Installed .../lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg Processing dependencies for Trac Searching for Genshi>=0.6 ...
So to solve this, we'd need to be able to trigger an install of Genshi at a very early stage.
In the meantime, we can advise to do an explicit:
easy_install Babel Genshi easy_install Trac
for first time installations (
easy_install Babel Genshi Trac won't work either).
Change History (10)
comment:1 Changed 8 years ago by
|Summary:||first time easy_install don't compile the catalogs → first time easy_install won't compile the catalogs|