-
Notifications
You must be signed in to change notification settings - Fork 2.4k
SCons: added versions 4.0.0-4.3.0 #30296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SCons: added versions 4.0.0-4.3.0 #30296
Conversation
|
I followed the python version requirements from the release notes, but I realize this could fail dependency resolution for packages that specify |
adamjstewart
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you'll need to add a url_for_version function like:
def url_for_version(self, version):
url = 'https://files.pythonhosted.org/packages/source/{0}/{1}/{1}-{2}.tar.gz'
if version >= Version('4.0.0'):
name = 'SCons'
else:
name = 'scons'
return url.format(name[0], name, version)|
Thanks for the pointer on |
|
Yes, we first check the local downloads cache, then check Spack's download mirror, then check the original source. If anything goes wrong with the first two we want the third to still work. |
| # Python 3.5 support was dropped in SCons 4.3.0 | ||
| depends_on('python@3.6:', when='@4.3.0:') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do you see this? The setup.cfg still says 3.5 is supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From https://scons.org/scons-430-is-available.html
NOTE: 4.3.0 now requires Python 3.6.0 and above. Python 3.5.x is no longer supported
The description on PyPI also mentions:
As of SCons 4.2.0 support for Python 3.5 is deprecated and will be removed with the next major release.
They may have forgotten to update that requirement everywhere.
I've added new versions of SCons. I fixed the
pypipackage attribute because it was preventing fetching of the newer archives. The older (3.1.2 and below) were fetched from Spack's mirror, so I don't know how this change affects the mirroring, feel free to suggest edits if something's wrong. Cheers!