diff options
author | Tony Weaver <55799947+aweaver1fandm@users.noreply.github.com> | 2024-09-10 11:37:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 10:37:05 -0500 |
commit | 0629c5df38fb78545a54e131a91567badd7c36bd (patch) | |
tree | 2ebb4f8e60800096636143439c4d46460e8a1b82 /var | |
parent | 79d778f8cdb5f4f5eaaeb9a5d1215080698041e3 (diff) | |
download | spack-0629c5df38fb78545a54e131a91567badd7c36bd.tar.gz spack-0629c5df38fb78545a54e131a91567badd7c36bd.tar.bz2 spack-0629c5df38fb78545a54e131a91567badd7c36bd.tar.xz spack-0629c5df38fb78545a54e131a91567badd7c36bd.zip |
py-your: Changed software pull location (#46201)
* py-your: new package
Spack package recipe for YOUR, Your Unified Reader. YOUR processes pulsar data in different formats.
Output below from spack install py-your
spack install py-your
==> Installing py-your-0.6.7-djfzsn2lutp24ik6wrk6tjx5f7hil76x [83/83]
==> No binary for py-your-0.6.7-djfzsn2lutp24ik6wrk6tjx5f7hil76x found: installing from source
==> Fetching https://github.com/thepetabyteproject/your/archive/refs/tags/0.6.7.tar.gz
==> No patches needed for py-your
==> py-your: Executing phase: 'install'
==> py-your: Successfully installed py-your-0.6.7-djfzsn2lutp24ik6wrk6tjx5f7hil76x
Stage: 1.43s. Install: 0.99s. Post-install: 0.12s. Total: 3.12s
* Removed setup_run_environment
After some testing, both spack load and module load for the package will include the bin directory generated by py-your as well as the path to the version of python the package was built with, without the need for the setup_run_environment function.
I removed that function (Although, like Tamara I thought it would be necessary based on other package setups I used as a basis for this package).
Note: I also updated the required version of py-astropy from py-astropy@4.0: to @py-astropy@6.1.0: In my test builds, the install was picking up version py-astropy@4.0.1.post1 and numpy1.26. However when I tried to run some of the code I was getting errors about py-astropy making numpy calls that are now removed. The newer version of py-astropy corrects these. Ideally this would be handled in the py-astropy package to make sure numpy isn't too new
* Changed software pull location
The original package pulled a tagged release version from GitHub. That tagged version was created in 2022 and has not been updated since. It no longer runs because newer versions of numpy have removed deprecation warnings for several of their calls. The main branch for this repository has addressed these numpy issues as well as some other important fixes but no new release has been generated. Because of this and the apparent minimal development that now appears to be going on, it is probably best to always pull from the main branch
* [@spackbot] updating style on behalf of aweaver1fandm
* py-your: Changed software pull location
1. Restored original URL and version (0.6.7) as requested
2. Updated py-numpy dependency versions to be constrained based on the version of your. Because of numpy deprecations related to your version 0.6.7 need to ensure that the numpy version used is not 1.24 or greater because the depracations were removed starting with that version
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-your/package.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/py-your/package.py b/var/spack/repos/builtin/packages/py-your/package.py index a0e90fc7bd..f226bff0b3 100644 --- a/var/spack/repos/builtin/packages/py-your/package.py +++ b/var/spack/repos/builtin/packages/py-your/package.py @@ -10,14 +10,14 @@ class PyYour(PythonPackage): """Python library to read and process pulsar data in several different formats""" homepage = "https://github.com/thepetabyteproject/your" - - # pypi tarball has requirements.txt missing url = "https://github.com/thepetabyteproject/your/archive/refs/tags/0.6.7.tar.gz" + git = "https://github.com/thepetabyteproject/your.git" maintainers("aweaver1fandm") license("GPL-3.0") + version("main", branch="main", preferred=True) version("0.6.7", sha256="f2124a630d413621cce067805feb6b9c21c5c8938f41188bd89684968478d814") depends_on("python@3.8:", type=("build", "run")) @@ -25,7 +25,9 @@ class PyYour(PythonPackage): depends_on("py-astropy@6.1.0:", type=("build", "run")) depends_on("py-matplotlib@3.2.1:", type=("build", "run")) - depends_on("py-numpy@1.18.4:", type=("build", "run")) + + depends_on("py-numpy@1.18.4:1.23.5", when="@0.6.7", type=("build", "run")) + depends_on("py-numpy@1.18.4:", when="@main", type=("build", "run")) depends_on("py-h5py@2.10:", type=("build", "run")) depends_on("py-scikit-image@0.14.2:", type=("build", "run")) depends_on("py-scipy@1.3:", type=("build", "run")) |