Patch version checking
@@ -6,7 +6,11 @@ YANK
"""
# Define global version.
+try:
from . import version # Needed for yank 3.X.
+ __version__ = version.version
+except ImportError:
+ __version__ = "0.0.0dev"
# Self module imports
from . import utils
@@ -14,5 +18,3 @@ from . import restraints
from . import pipeline
from . import experiment
from .yank import Topography, AlchemicalPhase
-
-__version__ = version.version
