Skip to content

Commit

Permalink
Ensure param.version is correct version
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 2, 2019
1 parent 027dbb6 commit 55bd0b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Expand Up @@ -71,6 +71,9 @@ def get_setup_version(reponame):
version_file_path = os.path.join(basepath, reponame, '.version')
try:
from param import version

# Ensure that param.version has Version object
assert hasattr(version, 'Version')
except:
version = embed_version(basepath)
if version is not None:
Expand Down

0 comments on commit 55bd0b9

Please sign in to comment.