diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2022-11-22 17:02:30 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-22 15:02:30 -0800 |
commit | c5883fffd7310f704a8adc2f3666d7539cdfe4e1 (patch) | |
tree | 6878ac2edd4efab60b0655a25891e8f010c17f1a /var/spack/repos/builtin/packages/alps/package.py | |
parent | 4bf964e6b36e8756b014c2e30343507c1cb71b03 (diff) | |
download | spack-c5883fffd7310f704a8adc2f3666d7539cdfe4e1.tar.gz spack-c5883fffd7310f704a8adc2f3666d7539cdfe4e1.tar.bz2 spack-c5883fffd7310f704a8adc2f3666d7539cdfe4e1.tar.xz spack-c5883fffd7310f704a8adc2f3666d7539cdfe4e1.zip |
Python: drop EOL versions (#33898)
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 https://github.com/spack/spack/discussions/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.
Diffstat (limited to 'var/spack/repos/builtin/packages/alps/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/alps/package.py | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/var/spack/repos/builtin/packages/alps/package.py b/var/spack/repos/builtin/packages/alps/package.py deleted file mode 100644 index 651c204864..0000000000 --- a/var/spack/repos/builtin/packages/alps/package.py +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other -# Spack Project Developers. See the top-level COPYRIGHT file for details. -# -# SPDX-License-Identifier: (Apache-2.0 OR MIT) - -from spack.package import * - -# Refs for building from source and recipes -# https://alps.comp-phys.org/mediawiki/index.php/Building_ALPS_from_source -# https://github.com/easybuilders/easybuild-easyconfigs/tree/master/easybuild/easyconfigs/a/ALPS -# https://github.com/conda-forge/alps-feedstock/tree/master/recipe - - -class Alps(CMakePackage): - """Algorithms for Physics Simulations - - Tags: Condensed Matter Physics, Computational Physics - """ - - homepage = "https://alps.comp-phys.org" - url = "https://alps.comp-phys.org/static/software/releases/alps-2.3.0-src.tar.gz" - - version("2.3.0", sha256="e64208d1e5acdd6f569277413c4867e1fa366cf4a224570eacbf1e9939fca2d2") - - # Package failed to build with boost version >= 1.64 - depends_on( - "boost@:1.63.0" - "+chrono +date_time +filesystem +iostreams +mpi +numpy +program_options" - "+python +regex +serialization +system +test +thread +timer" - ) - depends_on("fftw") - depends_on("hdf5 ~mpi+hl") - depends_on("lapack") - # build fails for latest python@3.7 - depends_on("python@:3.6", type=("build", "link", "run")) - depends_on("py-numpy", type=("build", "run")) - depends_on("py-scipy", type=("build", "run")) - depends_on("py-matplotlib", type=("build", "run")) - - # use depends_on to help with dependency resolution - depends_on("py-numpy@:1.19", when="^python@:3.6") - depends_on("py-scipy@:1.5", when="^python@:3.6") - - # fix for gcc@7: - patch("alps_newgcc.patch", when="%gcc@7:") - - # remove a problematic build variable - patch("mpi.patch") - - # include climits to use INT_MAX - patch("alps_climit.patch") - - # ctest tries to test '/usr/bin/time' - patch("alps_cmake_time.patch") - - extends("python") - - root_cmakelists_dir = "alps" - - def cmake_args(self): - args = [] - args.append("Boost_ROOT_DIR=" + self.spec["boost"].prefix) - args.append("-DCMAKE_CXX_FLAGS={0}".format(self.compiler.cxx98_flag)) - return args - - def _single_test(self, target, exename, dataname, opts=[]): - troot = self.prefix.tutorials - copy_tree(join_path(troot, target), target) - - if target == "dmrg-01-dmrg": - test_dir = self.test_suite.current_test_data_dir - copy(join_path(test_dir, dataname), target) - - self.run_test("parameter2xml", options=[dataname, "SEED=123456"], work_dir=target) - options = [] - options.extend(opts) - options.extend(["--write-xml", "{0}.in.xml".format(dataname)]) - self.run_test( - exename, options=options, expected=["Finished with everything."], work_dir=target - ) - - def test(self): - self._single_test("mc-02-susceptibilities", "spinmc", "parm2a", ["--Tmin", "10"]) - self._single_test("ed-01-sparsediag", "sparsediag", "parm1a") - self._single_test("dmrg-01-dmrg", "dmrg", "spin_one_half") |