Commits

Odd Simon Simonsen  committed 68cad97

CustomFieldAdminPlugin: Fix an l10n setup import that may not be present for Trac 0.11.x

  • Participants
  • Parent commits 1f69756

Comments (0)

Files changed (1)

File 0.11/setup.py

 
 extra = {}
 
-from trac.util.dist import get_l10n_cmdclass
-cmdclass = get_l10n_cmdclass()
+try:
+    from trac.util.dist import get_l10n_cmdclass
+    cmdclass = get_l10n_cmdclass()
+except ImportError:
+    cmdclass = None
 if cmdclass:
     extra['cmdclass'] = cmdclass
     extractors = [