Commits

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 setup.py.

Closes #9374.

Comments (0)

Files changed (1)

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