Skip to content

Commit

Permalink
[pybindings] get rid of extra underscore in version: allow to specify…
Browse files Browse the repository at this point in the history
… SCM version like 'rc1+hash' to conform PEP-440
  • Loading branch information
vicpopov authored and maksimandrianov committed Oct 20, 2020
1 parent 3aa0973 commit 9edbc75
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pyhelpers/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,9 @@ def get_version():
break
code_version = max(versions)

env_version_addendum = os.environ.get('OMIM_SCM_VERSION')
env_version_addendum = os.environ.get('OMIM_SCM_VERSION', '')

if env_version_addendum:
return "{}_{}".format(code_version, env_version_addendum)
return code_version
return "{}{}".format(code_version, env_version_addendum)


def transform_omim_requirement(requirement, omim_package_version):
Expand Down

0 comments on commit 9edbc75

Please sign in to comment.