Conversation
|
@spackbot fix style |
|
Let me see if I can fix that for you! |
| list_depth = 1 | ||
|
|
||
| maintainers = ["adamjstewart", "skosukhin", "scheibelp", "varioustoxins", "pradyunsg"] | ||
| maintainers = ["adamjstewart", "skosukhin", "scheibelp", "pradyunsg"] |
There was a problem hiding this comment.
@varioustoxins if I remember correctly, your willingness to help maintain this build recipe was contingent on Spack having Python 2 support. I removed you since we're planning on removing Python 2 support, but let me know if you still want to be listed as a maintainer.
|
I was able to run spack style --fix==> Running style checks on spack
selected: isort, mypy, black, flake8
==> Modified files
var/spack/repos/builtin/packages/python/package.py
==> Running isort checks
isort checks were clean
==> Running mypy checks
Success: no issues found in 558 source files
mypy checks were clean
==> Running black checks
reformatted var/spack/repos/builtin/packages/python/package.py
All done! ✨ 🍰 ✨
1 file reformatted.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> spack style checks were clean
I've updated the branch with isort fixes. |
|
@tgamblin FYI. Since you mentioned a deprecation plan in a meeting earlier today. |
1a527b7 to
4c5e6f3
Compare
|
@scottwittenburg how can I tell why e4s-pr-generate is failing? |
4c5e6f3 to
2ec1e1e
Compare
Reading the trace of that job, it seems there's a known broken spec on develop: I think @zackgalbreath has been tracking down a fix for that spec to get develop pipelines passing again. |
|
@johnwparent deserves the credit here. The fix has been merged and develop pipelines are once again passing on GitLab CI. |
|
@spackbot run pipeline |
|
I've started that pipeline for you! |
|
Yay, passing now! |
|
This is one of those cases where rebuilding all pipelines would have helped. At least this pipeline: https://gitlab.spack.io/spack/spack/-/pipelines/172567 is broken (we'll see the breakage on first rebuild) because it needs |
|
It seems the issue is due to the I'll be removing that build-system from the ones checked in pipelines. Would people agree on removing |
PR spack#32615 deprecated Python versions up to 3.6.X. Since the "build-systems" pipeline requires Python 3.6.15 to build "tut", it will fail on the first rebuild that involves Python. The "tut" package is meant to perform an end-to-end test of the "Waf" build-system, which is scarcely used. The fix therefore is just to remove it from the pipeline.
PR #32615 deprecated Python versions up to 3.6.X. Since the "build-systems" pipeline requires Python 3.6.15 to build "tut", it will fail on the first rebuild that involves Python. The "tut" package is meant to perform an end-to-end test of the "Waf" build-system, which is scarcely used. The fix therefore is just to remove it from the pipeline.
|
I don't see any reason to remove it entirely. We could test a different package if you're concerned about untested code. |
I'm slightly more concerned about maintaining a build-system for just 3 packages. Wondering if we can use another build-system for them. The three packages are:
I think the first can move to Not a high-priority thing, but if people agree, it wouldn't take a lot of time to remove the build-system and convert the packages. |
So yeah, I'm fine with dropping |
This PR removes [end of life](https://endoflife.date/python) versions of Python from Spack. Specifically, this includes all versions of Python older than 3.7. See #31824 for rationale. Deprecated in #32615. And #28003. For anyone using software that relies on Python 2, you have a few options: * Upgrade the software to support Python 3. The `3to2` tool may get you most of the way there, although more complex libraries may need manual tweaking. * Add Python 2 as an [external package](https://spack.readthedocs.io/en/latest/build_settings.html#external-packages). Many Python libraries do not support Python 2, but you may be able to add older versions that did once upon a time. * Use Spack 0.19. Spack 0.19 is the last release to officially support Python 3.6 and older * Create and maintain your own [custom repository](https://spack.readthedocs.io/en/latest/repositories.html). Basically, you would need a package for Python 2 and any other Python 2-specific libraries you need.
This PR removes [end of life](https://endoflife.date/python) versions of Python from Spack. Specifically, this includes all versions of Python older than 3.7. See spack#31824 for rationale. Deprecated in spack#32615. And spack#28003. For anyone using software that relies on Python 2, you have a few options: * Upgrade the software to support Python 3. The `3to2` tool may get you most of the way there, although more complex libraries may need manual tweaking. * Add Python 2 as an [external package](https://spack.readthedocs.io/en/latest/build_settings.html#external-packages). Many Python libraries do not support Python 2, but you may be able to add older versions that did once upon a time. * Use Spack 0.19. Spack 0.19 is the last release to officially support Python 3.6 and older * Create and maintain your own [custom repository](https://spack.readthedocs.io/en/latest/repositories.html). Basically, you would need a package for Python 2 and any other Python 2-specific libraries you need.
This PR deprecates using Spack to install EOL Python versions, including Python 2.7, 3.1–3.6. It also deprecates running Spack with Python 2.7. Going forward, we expect Spack to have the following Python support timeline.
Running Spack
Building with Spack
This is a reboot of #28003. See #31824 for a detailed discussion of the motivation for this PR. If you have concerns about this change, please comment on #31824.