Skip to content

Commit 6d20c04

Browse files
committed
Use older setuptools_scm version on Python 2 and 3.6
1 parent 7a1b8cd commit 6d20c04

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,13 @@
7676
# PEP440-compliant, and it always references the alibuild commit that
7777
# aliBuild was built from.
7878
use_scm_version={'write_to': 'alibuild_helpers/_version.py'},
79-
setup_requires=['setuptools_scm'],
79+
setup_requires=[
80+
# The 6.* series removed support for Python 2.7.
81+
'setuptools_scm<6.0.0' if sys.version_info < (3, 0) else
82+
# The 7.* series removed support for Python 3.6.
83+
'setuptools_scm<7.0.0' if sys.version_info < (3, 7) else
84+
'setuptools_scm'
85+
],
8086

8187
# List run-time dependencies here. These will be installed by pip when
8288
# your project is installed. For an analysis of "install_requires" vs pip's

0 commit comments

Comments
 (0)