summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Weaver <55799947+aweaver1fandm@users.noreply.github.com>2024-06-04 22:38:38 -0400
committerGitHub <noreply@github.com>2024-06-04 21:38:38 -0500
commitbc738cea3223d7ca2acd6380c5be3d0903b708e2 (patch)
treecbfc856bd2d5bfe7ef3d3cdb2a02185c4f412931
parentc2196f7d3a04acf991c7705242e5c9ba07a6850e (diff)
downloadspack-bc738cea3223d7ca2acd6380c5be3d0903b708e2.tar.gz
spack-bc738cea3223d7ca2acd6380c5be3d0903b708e2.tar.bz2
spack-bc738cea3223d7ca2acd6380c5be3d0903b708e2.tar.xz
spack-bc738cea3223d7ca2acd6380c5be3d0903b708e2.zip
py-your: new package (#44448)
* 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 [+] /usr (external glibc-2.28-oj2wjfl2ao5inhfz4qehw6hlck2hizvp) [+] /opt/apps/spack/gcc-runtime-8.5.0-5k6kvi5 [+] /opt/apps/spack/libxcrypt-4.4.35-zigqpjo [+] /opt/apps/spack/ncurses-6.4-xbvwv2w [+] /opt/apps/spack/erfa-2.0.0-4qkta2n [+] /opt/apps/spack/zlib-ng-2.1.6-ccn5qny [+] /opt/apps/spack/pcre-8.45-33dfhul [+] /opt/apps/spack/libpciaccess-0.17-2qdxdjo [+] /opt/apps/spack/libmd-1.0.4-zbdiprt [+] /opt/apps/spack/qhull-2020.2-klc7ewb [+] /opt/apps/spack/bzip2-1.0.8-t65bq3t [+] /opt/apps/spack/xz-5.4.6-axoznvt [+] /opt/apps/spack/alsa-lib-1.2.3.2-a7icjdy [+] /opt/apps/spack/zstd-1.5.6-nyk6gt6 [+] /opt/apps/spack/libffi-3.4.6-ibucrfe [+] /opt/apps/spack/yasm-1.3.0-v4etmmm [+] /opt/apps/spack/openblas-0.3.26-pfyk2vi [+] /opt/apps/spack/pkgconf-1.9.5-ckjdqjm [+] /opt/apps/spack/wcslib-7.3-zvcqq7o [+] /opt/apps/spack/libiconv-1.17-jskazis [+] /opt/apps/spack/unzip-6.0-mqftjtp [+] /opt/apps/spack/libjpeg-turbo-3.0.0-vjvivme [+] /opt/apps/spack/readline-8.2-2ys6ede [+] /opt/apps/spack/openssl-3.2.1-4lqdgni [+] /opt/apps/spack/pigz-2.8-rx263bp [+] /opt/apps/spack/libpng-1.6.39-kiuku4y [+] /opt/apps/spack/libbsd-0.12.1-njt5grs [+] /opt/apps/spack/swig-4.0.2-fortran-z3sbnze [+] /opt/apps/spack/binutils-2.42-vkjcvfr [+] /opt/apps/spack/util-linux-uuid-2.38.1-w3kgjq3 [+] /opt/apps/spack/hdf5-1.14.3-sbuiw6q [+] /opt/apps/spack/libedit-3.1-20230828-676jwbd [+] /opt/apps/spack/nghttp2-1.57.0-u72gxms [+] /opt/apps/spack/ffmpeg-6.1.1-2vhrbda [+] /opt/apps/spack/libxml2-2.10.3-37klvxv [+] /opt/apps/spack/gdbm-1.23-cylmqwx [+] /opt/apps/spack/sqlite-3.43.2-axuxulg [+] /opt/apps/spack/tar-1.34-wjzs4wj [+] /opt/apps/spack/freetype-2.13.2-in4taxi [+] /opt/apps/spack/expat-2.6.2-7kfe3hb [+] /opt/apps/spack/curl-8.6.0-gpzsr3p [+] /opt/apps/spack/hwloc-2.9.1-fhoz6al [+] /opt/apps/spack/gettext-0.22.4-zjsp346 [+] /opt/apps/spack/lua-5.3.6-47356ia [+] /opt/apps/spack/cfitsio-3.49-mmy3dbr [+] /opt/apps/spack/python-3.10.13-fz7fymx [+] /opt/apps/spack/elfutils-0.190-uswzaiw [+] /opt/apps/spack/py-pytz-2023.3-ojdlhrd [+] /opt/apps/spack/py-cycler-0.11.0-b7mjvv7 [+] /opt/apps/spack/py-pip-23.0-lxkcvby [+] /opt/apps/spack/python-venv-1.0-2cz5c3s [+] /opt/apps/spack/py-numpy-1.26.4-t5acjcv [+] /opt/apps/spack/llvm-14.0.6-3nosumn [+] /opt/apps/spack/py-packaging-23.1-wkeyuk6 [+] /opt/apps/spack/py-six-1.16.0-iv6iv3q [+] /opt/apps/spack/py-pybind11-2.12.0-5rvupjv [+] /opt/apps/spack/py-setuptools-69.2.0-3do76jw [+] /opt/apps/spack/py-pyparsing-3.1.2-fq6imlt [+] /opt/apps/spack/py-wheel-0.41.2-brm3k3h [+] /opt/apps/spack/py-llvmlite-0.41.1-qom3l5h [+] /opt/apps/spack/py-astropy-4.0.1.post1-xbojixg [+] /opt/apps/spack/py-python-dateutil-2.8.2-kzdfskc [+] /opt/apps/spack/py-numexpr-2.8.4-fc5xc5s [+] /opt/apps/spack/py-h5py-3.11.0-y6drk3j [+] /opt/apps/spack/py-tifffile-2023.8.30-oof4try [+] /opt/apps/spack/py-pygments-2.16.1-stgrccl [+] /opt/apps/spack/py-mdurl-0.1.2-nqk43ry [+] /opt/apps/spack/py-scipy-1.13.0-vxjgfov [+] /opt/apps/spack/py-contourpy-1.0.7-jg5lhss [+] /opt/apps/spack/py-pillow-10.3.0-ijh2cju [+] /opt/apps/spack/py-kiwisolver-1.4.5-vdh5sq5 [+] /opt/apps/spack/py-fonttools-4.39.4-x5ydbox [+] /opt/apps/spack/py-bottleneck-1.3.7-ztsm4lg [+] /opt/apps/spack/py-lazy-loader-0.4-k7hgvka [+] /opt/apps/spack/py-numba-0.58.1-hzvrjwj [+] /opt/apps/spack/py-markdown-it-py-3.0.0-l4p4qv5 [+] /opt/apps/spack/py-imageio-2.34.0-z5hu4yc [+] /opt/apps/spack/py-matplotlib-3.8.4-azq2fzm [+] /opt/apps/spack/py-pandas-1.5.3-p3gnh6t [+] /opt/apps/spack/py-rich-13.4.2-okhgwwz [+] /opt/apps/spack/py-networkx-3.1-b54br7r [+] /opt/apps/spack/py-scikit-image-0.23.2-cvyzh3t ==> 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
-rw-r--r--var/spack/repos/builtin/packages/py-your/package.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-your/package.py b/var/spack/repos/builtin/packages/py-your/package.py
new file mode 100644
index 0000000000..a0e90fc7bd
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-your/package.py
@@ -0,0 +1,34 @@
+# Copyright 2013-2024 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 *
+
+
+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"
+
+ maintainers("aweaver1fandm")
+
+ license("GPL-3.0")
+
+ version("0.6.7", sha256="f2124a630d413621cce067805feb6b9c21c5c8938f41188bd89684968478d814")
+
+ depends_on("python@3.8:", type=("build", "run"))
+ depends_on("py-setuptools", type="build")
+
+ 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-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"))
+ depends_on("py-numba@0.48:", type=("build", "run"))
+ depends_on("py-pandas@1.0.3:", type=("build", "run"))
+ depends_on("py-rich@8:", type=("build", "run"))