Skip to content

Commit

Permalink
trying to fix scm autoversioning for macos pyuda wheel builds
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed Apr 15, 2024
1 parent 9eabbde commit 7cb8a38
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions source/wrappers/python/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,17 @@ ext = Extension(
)


def get_version():
version = '@PROJECT_VERSION@'
if version.count('.') > 2:
version = ".Post".join(version.rsplit('.', 1))
print("setup version = %s" % version)
return version
def get_version(v):
if v.count('.') > 2:
v = ".Post".join(v.rsplit('.', 1))
print("setup version = %s" % v)
return v


# use_scm_version={'version_scheme': 'post-release', 'local_scheme': 'no-local-version'},
setup(
name='ukaea_pyuda_test',
version=get_version,
version=get_version('@PROJECT_VERSION@'),
description='Unified Data Access (UDA)',
author='Jonathan Hollocombe',
author_email='jonathan.hollocombe@ukaea.uk',
Expand Down

0 comments on commit 7cb8a38

Please sign in to comment.