Skip to content

Commit

Permalink
removing cp36 and cp37 from manylinux2014 build due to setuptools_scm…
Browse files Browse the repository at this point in the history
… auto-versioning incompatibility
  • Loading branch information
stephen-dixon committed Apr 14, 2024
1 parent 97510ca commit 671af43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
CIBW_ARCHS: ${{matrix.build-platform[1]}}
CIBW_BUILD: cp*-manylinux*
CIBW_SKIP: "*-musllinux*"
CIBW_SKIP: cp36* cp37* *-musllinux*
CIBW_BEFORE_ALL: >
yum update -y &&
yum install -y wget openssl-devel libxml2-devel libtirpc-devel &&
Expand Down
2 changes: 1 addition & 1 deletion source/wrappers/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=42", "setuptools_scm", "numpy>=1.7", "Cython>=0.29", "six"]
requires = ["setuptools>=42", "setuptools_scm>=8", "numpy>=1.7", "Cython>=0.29", "six"]
build-backend = "setuptools.build_meta"


Expand Down
8 changes: 1 addition & 7 deletions source/wrappers/python/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,10 @@ ext = Extension(
define_macros=extra_macros,
)


# redefine here instead of using "no-local-version" in case we can get setuptools_scm to work for older python versions (3.6 and 3.7)
def local_scheme(version):
return ""


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

0 comments on commit 671af43

Please sign in to comment.