Christian Boos  committed f18c6b4

trac.version: allow bootstrap during initial setup, as we now need to be able to import some trac packages (`trac.util.dist`) from

Closes #9374.

  • Participants
  • Parent commits 10af379
  • Branches trunk

Comments (0)

Files changed (1)

File trac/

 # individuals. For the exact contribution history, see the revision
 # history and logs, available at
-__version__ = __import__('pkg_resources').get_distribution('Trac').version
+from pkg_resources import DistributionNotFound, get_distribution
+    __version__ = get_distribution('Trac').version
+except DistributionNotFound:
+    __version__ = '0.12dev'