Repository: spack/spack

Issue:
Installation issue: py-numpy
### Steps to reproduce the issue

```console
$ spack spec -I uqtk@3.1.3 ^py-numpy@:1.20
==> Concretized uqtk@3.1.3 ^py-numpy@:1.20
 -   mwj2bgn  uqtk@3.1.3%gcc@10.2.1~ipo+python build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-pureos10-skylake
[+]  zjmsfz2      ^cmake@3.26.3%gcc@10.2.1~doc+ncurses+ownlibs~qt build_system=generic build_type=Release arch=linux-pureos10-skylake
[+]  c2f4sm3          ^ncurses@6.4%gcc@10.2.1~symlinks+termlib abi=none build_system=autotools arch=linux-pureos10-skylake
[+]  4pe3dwd          ^openssl@1.1.1t%gcc@10.2.1~docs~shared build_system=generic certs=mozilla arch=linux-pureos10-skylake
[+]  ckyuvjo              ^ca-certificates-mozilla@2023-01-10%gcc@10.2.1 build_system=generic arch=linux-pureos10-skylake
[+]  doqmmyx      ^expat@2.5.0%gcc@10.2.1+libbsd build_system=autotools arch=linux-pureos10-skylake
[+]  gdfrjga          ^libbsd@0.11.7%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  eequvke              ^libmd@1.0.4%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  b6g4apm      ^gmake@4.4.1%gcc@10.2.1~guile build_system=autotools arch=linux-pureos10-skylake
[+]  3ygpqfx      ^openblas@0.3.21%gcc@10.2.1~bignuma~consistent_fpcsr+fortran~ilp64+locking+pic+shared build_system=makefile patches=d3d9b15 symbol_suffix=none threads=none arch=linux-pureos10-skylake
[+]  q7drhg4          ^perl@5.36.0%gcc@10.2.1+cpanm+open+shared+threads build_system=generic arch=linux-pureos10-skylake
[+]  6laytyu              ^berkeley-db@18.1.40%gcc@10.2.1+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-pureos10-skylake
 -   y2quehf      ^py-matplotlib@3.7.1%gcc@10.2.1~animation~fonts~latex~movies backend=agg build_system=python_pip arch=linux-pureos10-skylake
[+]  oj7aifk          ^freetype@2.11.1%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  ld3eisc          ^libpng@1.6.39%gcc@10.2.1~ipo build_system=cmake build_type=RelWithDebInfo generator=make libs=shared,static arch=linux-pureos10-skylake
[+]  yuc4j3z          ^pkgconf@1.8.0%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  dtedzbw          ^py-certifi@2022.12.7%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  ssclirb              ^py-setuptools@63.0.0%gcc@10.2.1 build_system=generic arch=linux-pureos10-skylake
 -   6voze2s          ^py-contourpy@1.0.5%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  r2i3bon          ^py-cycler@0.11.0%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  ebz66e6          ^py-fonttools@4.37.3%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  3tngnmc          ^py-kiwisolver@1.4.4%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  bp7zlb7              ^py-cppy@1.2.1%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  nmljruo              ^py-setuptools-scm@7.0.5%gcc@10.2.1+toml build_system=python_pip arch=linux-pureos10-skylake
[+]  6kkoxj6          ^py-packaging@23.0%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  og3s6wr              ^py-flit-core@3.7.1%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  4tlfwdo          ^py-pillow@9.5.0%gcc@10.2.1~freetype~imagequant+jpeg~jpeg2000~lcms~raqm~tiff~webp~xcb+zlib build_system=python_pip arch=linux-pureos10-skylake
[+]  huencpb              ^libjpeg-turbo@2.1.4%gcc@10.2.1~ipo~jpeg8+shared+static build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-pureos10-skylake
[+]  yf2te47                  ^nasm@2.15.05%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  fty4dsx          ^py-pip@23.0%gcc@10.2.1 build_system=generic arch=linux-pureos10-skylake
[+]  5j6yqny          ^py-pybind11@2.10.1%gcc@10.2.1~ipo build_system=cmake build_type=RelWithDebInfo generator=ninja arch=linux-pureos10-skylake
[+]  xty2wca              ^ninja@1.11.1%gcc@10.2.1+re2c build_system=generic arch=linux-pureos10-skylake
[+]  gacxgfu                  ^re2c@2.2%gcc@10.2.1 build_system=generic arch=linux-pureos10-skylake
[+]  3rhsroa          ^py-pyparsing@3.0.9%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  tc7m7th          ^py-python-dateutil@2.8.2%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  mu6r2c2              ^py-six@1.16.0%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  jv4cbx2          ^py-setuptools@59.4.0%gcc@10.2.1 build_system=generic arch=linux-pureos10-skylake
[+]  ht5vfb3          ^py-setuptools-scm@7.0.5%gcc@10.2.1+toml build_system=python_pip arch=linux-pureos10-skylake
[+]  n4naxit              ^py-tomli@2.0.1%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  prru3cs              ^py-typing-extensions@4.5.0%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  flsgumr          ^py-wheel@0.37.1%gcc@10.2.1 build_system=generic arch=linux-pureos10-skylake
[+]  pfhfhll          ^qhull@2020.2%gcc@10.2.1~ipo build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-pureos10-skylake
 -   377ao7p      ^py-numpy@1.20.3%gcc@10.2.1+blas+lapack build_system=python_pip patches=802970a,873745d arch=linux-pureos10-skylake
[+]  hzk3eum          ^py-cython@0.29.33%gcc@10.2.1 build_system=python_pip patches=71de066 arch=linux-pureos10-skylake
 -   ovjaiyu      ^py-pymc3@3.8%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
 -   rnqz3et          ^py-arviz@0.6.1%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
 -   2wpi6ji              ^py-netcdf4@1.6.2%gcc@10.2.1+mpi build_system=python_pip patches=255b5ae arch=linux-pureos10-skylake
[+]  f25h3pt                  ^netcdf-c@4.9.2%gcc@10.2.1+blosc~byterange~dap~fsync~hdf4~jna+mpi~nczarr_zip+optimize~parallel-netcdf+pic+shared+szip+zstd build_system=autotools arch=linux-pureos10-skylake
[+]  kyh3mam                      ^c-blosc@1.21.1%gcc@10.2.1+avx2~ipo build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-pureos10-skylake
[+]  qny5qxb                          ^lz4@1.9.4%gcc@10.2.1 build_system=makefile libs=shared,static arch=linux-pureos10-skylake
[+]  wkoxkcw                          ^snappy@1.1.10%gcc@10.2.1~ipo+pic+shared build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-pureos10-skylake
[+]  oim2p7d                      ^libaec@1.0.6%gcc@10.2.1~ipo+shared build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-pureos10-skylake
 -   ejljaqf                  ^py-cftime@1.0.3.4%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
 -   i5pp2gm              ^py-xarray@2022.3.0%gcc@10.2.1~io~parallel build_system=python_pip arch=linux-pureos10-skylake
[+]  sn72ubf                  ^py-setuptools-scm-git-archive@1.4%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
 -   idolz6f          ^py-h5py@3.7.0%gcc@10.2.1+mpi build_system=python_pip arch=linux-pureos10-skylake
[+]  wto2dnz              ^hdf5@1.12.2%gcc@10.2.1~cxx~fortran+hl~ipo~java+mpi+shared~szip~threadsafe+tools api=default build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-pureos10-skylake
[+]  slli6wq              ^py-mpi4py@3.1.4%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  bz7zwnn                  ^py-cython@0.29.33%gcc@10.2.1 build_system=python_pip patches=71de066 arch=linux-pureos10-skylake
[+]  nht4zo6              ^py-pkgconfig@1.5.5%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  jbas7qk                  ^py-poetry-core@1.2.0%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
 -   ehnluuh          ^py-pandas@1.5.3%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
 -   nbcmv6f              ^py-bottleneck@1.3.5%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  l7eaz5e                  ^py-versioneer@0.28%gcc@10.2.1+toml build_system=python_pip arch=linux-pureos10-skylake
 -   2w5hz2z              ^py-numexpr@2.8.3%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  rf7sab5              ^py-pytz@2022.2.1%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
 -   2juj7le          ^py-patsy@0.5.2%gcc@10.2.1~splines build_system=python_pip arch=linux-pureos10-skylake
 -   waq76ux          ^py-theano@1.0.5%gcc@10.2.1~cuda build_system=python_pip arch=linux-pureos10-skylake
[+]  wji5a3r          ^py-tqdm@4.65.0%gcc@10.2.1~notebook~telegram build_system=python_pip arch=linux-pureos10-skylake
 -   npb7skk      ^py-scipy@1.10.1%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  t5a5aw3          ^py-build@0.10.0%gcc@10.2.1~virtualenv build_system=python_pip arch=linux-pureos10-skylake
[+]  irfx3h5              ^py-pyproject-hooks@1.0.0%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  iybqsdl          ^py-meson-python@0.12.0%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  fnhi3cq              ^meson@1.1.0%gcc@10.2.1 build_system=python_pip patches=0f0b1bd arch=linux-pureos10-skylake
[+]  xptpwqm              ^py-pyproject-metadata@0.7.1%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
 -   mrff3lr          ^py-pythran@0.12.0%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  sziyl65              ^py-beniget@0.4.1%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  c4ralq6              ^py-gast@0.5.3%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  izexavn              ^py-ply@3.11%gcc@10.2.1 build_system=python_pip arch=linux-pureos10-skylake
[+]  occkzek      ^python@3.10.10%gcc@10.2.1+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,7d40923,f2fd060 arch=linux-pureos10-skylake
[+]  hy5b75p          ^bzip2@1.0.8%gcc@10.2.1~debug~pic+shared build_system=generic arch=linux-pureos10-skylake
[+]  ua23czr              ^diffutils@3.9%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  z2gy5uh          ^gdbm@1.23%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  5krmhat          ^gettext@0.21.1%gcc@10.2.1+bzip2+curses+git~libunistring+libxml2+tar+xz build_system=autotools arch=linux-pureos10-skylake
[+]  g646wmh              ^libiconv@1.17%gcc@10.2.1 build_system=autotools libs=shared,static arch=linux-pureos10-skylake
[+]  e5rknog              ^libxml2@2.10.3%gcc@10.2.1~python build_system=autotools arch=linux-pureos10-skylake
[+]  uziexc3              ^tar@1.34%gcc@10.2.1 build_system=autotools zip=pigz arch=linux-pureos10-skylake
[+]  cbtkzrq                  ^pigz@2.7%gcc@10.2.1 build_system=makefile arch=linux-pureos10-skylake
[+]  eh4jvg2                  ^zstd@1.5.5%gcc@10.2.1+programs build_system=makefile compression=none libs=shared,static arch=linux-pureos10-skylake
[+]  4odnkic          ^libffi@3.4.4%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  hqmgaki          ^libxcrypt@4.4.33%gcc@10.2.1~obsolete_api build_system=autotools arch=linux-pureos10-skylake
[+]  x75d7k2          ^readline@8.2%gcc@10.2.1 build_system=autotools patches=bbf97f1 arch=linux-pureos10-skylake
[+]  y7tcnce          ^sqlite@3.40.1%gcc@10.2.1+column_metadata+dynamic_extensions+fts~functions+rtree build_system=autotools arch=linux-pureos10-skylake
[+]  w3dh4qx          ^util-linux-uuid@2.38.1%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  kxdbdpo          ^xz@5.4.1%gcc@10.2.1~pic build_system=autotools libs=shared,static arch=linux-pureos10-skylake
[+]  45rnapo          ^zlib@1.2.13%gcc@10.2.1+optimize+pic+shared build_system=makefile arch=linux-pureos10-skylake
[+]  hd73flq      ^sundials@6.5.0%gcc@10.2.1+ARKODE+CVODE+CVODES+IDA+IDAS+KINSOL~cuda+examples+examples-install~f2003~fcmix+generic-math~ginkgo~hypre~int64~ipo~klu~kokkos~kokkos-kernels~lapack~magma~monitoring+mpi~openmp~petsc~profiling~pthread~raja~rocm+shared+static~superlu-dist~superlu-mt~sycl~trilinos build_system=cmake build_type=RelWithDebInfo cstd=99 cxxstd=14 generator=make logging-level=0 logging-mpi=OFF precision=double arch=linux-pureos10-skylake
[+]  xn5g4i6          ^openmpi@4.1.5%gcc@10.2.1~atomics~cuda~cxx~cxx_exceptions~gpfs~internal-hwloc~java~legacylaunchers~lustre~memchecker~orterunprefix+romio+rsh~singularity+static+vt+wrapper-rpath build_system=autotools fabrics=none schedulers=none arch=linux-pureos10-skylake
[+]  3cud5ff              ^hwloc@2.9.0%gcc@10.2.1~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm build_system=autotools libs=shared,static arch=linux-pureos10-skylake
[+]  ao544rt                  ^libpciaccess@0.17%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  5aeoyzg                      ^util-macros@1.19.3%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  cmmn5gp              ^numactl@2.0.14%gcc@10.2.1 build_system=autotools patches=4e1d78c,62fc8a8,ff37630 arch=linux-pureos10-skylake
[+]  jg7usdk                  ^autoconf@2.69%gcc@10.2.1 build_system=autotools patches=35c4492,7793209,a49dd5b arch=linux-pureos10-skylake
[+]  4donssl                  ^automake@1.16.5%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  jqjei33                  ^libtool@2.4.7%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  vphpntb                  ^m4@1.4.19%gcc@10.2.1+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-pureos10-skylake
[+]  xd4dtbd                      ^libsigsegv@2.14%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  cfyuujo              ^openssh@9.3p1%gcc@10.2.1+gssapi build_system=autotools arch=linux-pureos10-skylake
[+]  6vryig6                  ^krb5@1.20.1%gcc@10.2.1+shared build_system=autotools arch=linux-pureos10-skylake
[+]  mvgfx4w                      ^bison@3.8.2%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  a7lx5q7                  ^libedit@3.1-20210216%gcc@10.2.1 build_system=autotools arch=linux-pureos10-skylake
[+]  ebx6kfd              ^pmix@4.2.3%gcc@10.2.1~docs+pmi_backwards_compatibility~python~restful build_system=autotools arch=linux-pureos10-skylake
[+]  vjkuihq                  ^libevent@2.1.12%gcc@10.2.1+openssl build_system=autotools arch=linux-pureos10-skylake

```

My reason for trying the older version of numpy is to workaround an import error:

```python-traceback
Traceback (most recent call last):
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/uqtk-3.1.3-x63qchxl2ejryp3nazypaxcnkfm2ao4u/PyUQTk/inference/postproc.py", line 44, in <module>
    import pymc
ModuleNotFoundError: No module named 'pymc'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/uqtk-3.1.3-x63qchxl2ejryp3nazypaxcnkfm2ao4u/PyUQTk/__init__.py", line 47, in <module>
    from . import inference
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/uqtk-3.1.3-x63qchxl2ejryp3nazypaxcnkfm2ao4u/PyUQTk/inference/__init__.py", line 29, in <module>
    from . import postproc
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/uqtk-3.1.3-x63qchxl2ejryp3nazypaxcnkfm2ao4u/PyUQTk/inference/postproc.py", line 48, in <module>
    import pymc3 as pymc
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-pymc3-3.8-vmmekscw62ydlz7pqvilnslvv57sjrxc/lib/python3.10/site-packages/pymc3/__init__.py", line 5, in <module>
    from .distributions import *
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-pymc3-3.8-vmmekscw62ydlz7pqvilnslvv57sjrxc/lib/python3.10/site-packages/pymc3/distributions/__init__.py", line 1, in <module>
    from . import timeseries
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-pymc3-3.8-vmmekscw62ydlz7pqvilnslvv57sjrxc/lib/python3.10/site-packages/pymc3/distributions/timeseries.py", line 2, in <module>
    import theano.tensor as tt
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-theano-1.0.5-pai2pwlxvegprbpmatv6jmc6m2lbxoz6/lib/python3.10/site-packages/theano/__init__.py", line 124, in <module>
    from theano.scan_module import (scan, map, reduce, foldl, foldr, clone,
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-theano-1.0.5-pai2pwlxvegprbpmatv6jmc6m2lbxoz6/lib/python3.10/site-packages/theano/scan_module/__init__.py", line 41, in <module>
    from theano.scan_module import scan_opt
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-theano-1.0.5-pai2pwlxvegprbpmatv6jmc6m2lbxoz6/lib/python3.10/site-packages/theano/scan_module/scan_opt.py", line 60, in <module>
    from theano import tensor, scalar
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-theano-1.0.5-pai2pwlxvegprbpmatv6jmc6m2lbxoz6/lib/python3.10/site-packages/theano/tensor/__init__.py", line 8, in <module>
    from theano.tensor.basic import *
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-theano-1.0.5-pai2pwlxvegprbpmatv6jmc6m2lbxoz6/lib/python3.10/site-packages/theano/tensor/basic.py", line 20, in <module>
    from theano.scalar import int32 as int32_t
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-theano-1.0.5-pai2pwlxvegprbpmatv6jmc6m2lbxoz6/lib/python3.10/site-packages/theano/scalar/__init__.py", line 3, in <module>
    from .basic import *
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-theano-1.0.5-pai2pwlxvegprbpmatv6jmc6m2lbxoz6/lib/python3.10/site-packages/theano/scalar/basic.py", line 2370, in <module>
    convert_to_bool = Cast(bool, name='convert_to_bool')
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-theano-1.0.5-pai2pwlxvegprbpmatv6jmc6m2lbxoz6/lib/python3.10/site-packages/theano/scalar/basic.py", line 2323, in __init__
    self.ctor = getattr(np, o_type.dtype)
  File "/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-numpy-1.24.2-yigxjtuh6rjqqmoblpvtzcpgt6ydhbif/lib/python3.10/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'bool'.
`np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'bool_'?
```

### Error message

<details><summary>Error message</summary>

<pre>
==> Installing py-numpy-1.20.3-377ao7pqhz7i3ozkmv5upsm7nqhhxdiu
==> No binary for py-numpy-1.20.3-377ao7pqhz7i3ozkmv5upsm7nqhhxdiu found: installing from source
==> Fetching https://mirror.spack.io/_source-cache/archive/e5/e55185e51b18d788e49fe8305fd73ef4470596b33fc2c1ceb304566b99c71a69.zip
==> Using cached archive: /home/omsai/src/spack/var/spack/cache/_source-cache/archive/80/802970a9034d40a8a8f49a03f489d5361d5eabf69249621e6757651448910f1a
==> Applied patch /home/omsai/src/spack/var/spack/repos/builtin/packages/py-numpy/check_executables.patch
==> Applied patch https://github.com/numpy/numpy/pull/20881.patch?full_index=1
==> py-numpy: Executing phase: 'install'
==> Error: ProcessError: Command exited with status 1:
    '/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/bin/python3.10' '-m' 'pip' '-vvv' '--no-input' '--no-cache-dir' '--disable-pip-version-check' 'install' '--no-deps' '--ignore-installed' '--no-build-isolation' '--no-warn-script-location' '--no-index' '--prefix=/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-numpy-1.20.3-377ao7pqhz7i3ozkmv5upsm7nqhhxdiu' '.'

23 errors found in build log:
     11      Created temporary directory: /tmp/pip-ephem-wheel-cache-1iqhwfjf
     12      Processing /tmp/omsai/spack-stage/spack-stage-py-numpy-1.20.3-377ao7pqhz7i3ozkmv5upsm7nqhhxdiu/spack-src
     13        Added file:///tmp/omsai/spack-stage/spack-stage-py-numpy-1.20.3-377ao7pqhz7i3ozkmv5upsm7nqhhxdiu/spack-src to build tracker '/tmp/p
             ip-build-tracker-x7xyoavj'
     14        Created temporary directory: /tmp/pip-modern-metadata-mxi30d41
     15        Preparing metadata (pyproject.toml): started
     16        Running command Preparing metadata (pyproject.toml)
  >> 17      setup.py:66: RuntimeWarning: NumPy 1.20.3 may not yet support Python 3.10.
     18          warnings.warn(
     19        Running from numpy source directory.
  >> 20        setup.py:485: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
     21          run_build = parse_setuppy_commands()
  >> 22        /tmp/omsai/spack-stage/spack-stage-py-numpy-1.20.3-377ao7pqhz7i3ozkmv5upsm7nqhhxdiu/spack-src/tools/cythonize.py:67: DeprecationWar
             ning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential altern
             atives
     23          from distutils.version import LooseVersion
     24        Processing numpy/random/_bounded_integers.pxd.in
     25        Processing numpy/random/mtrand.pyx
     26        Processing numpy/random/_pcg64.pyx
     27        Processing numpy/random/bit_generator.pyx
     28        Processing numpy/random/_sfc64.pyx

     ...

     76            libraries = ['openblas', 'openblas']
     77            library_dirs = ['/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/openblas-0.3.21-3ygpqfxrwpic6dibpjdtqxyszuxa
             3y5h/lib']
     78            language = c
     79            define_macros = [('HAVE_CBLAS', None)]
     80            runtime_library_dirs = ['/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/openblas-0.3.21-3ygpqfxrwpic6dibpjdt
             qxyszuxa3y5h/lib']
     81      
  >> 82      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/lib/python3.10/dist
             utils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
     83          warnings.warn(msg)
     84        running dist_info
     85        running build_src
     86        build_src
     87        building py_modules sources
     88        creating build

     ...

     166       building extension "numpy.random.bit_generator" sources
     167       building extension "numpy.random._generator" sources
     168       building extension "numpy.random._bounded_integers" sources
     169       building extension "numpy.random.mtrand" sources
     170       building data_files sources
     171       build_src: building npy-pkg config files
  >> 172     /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-setuptools-59.4.0-jv4cbx2koiuwaoatvk2rplzjlol5xxtq/lib/python3.1
             0/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and
              other standards-based tools.
     173         warnings.warn(
     174       creating /tmp/pip-modern-metadata-mxi30d41/numpy.egg-info
     175       writing /tmp/pip-modern-metadata-mxi30d41/numpy.egg-info/PKG-INFO
     176       writing dependency_links to /tmp/pip-modern-metadata-mxi30d41/numpy.egg-info/dependency_links.txt
     177       writing entry points to /tmp/pip-modern-metadata-mxi30d41/numpy.egg-info/entry_points.txt
     178       writing top-level names to /tmp/pip-modern-metadata-mxi30d41/numpy.egg-info/top_level.txt
     179       writing manifest file '/tmp/pip-modern-metadata-mxi30d41/numpy.egg-info/SOURCES.txt'
  >> 180     /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/py-setuptools-59.4.0-jv4cbx2koiuwaoatvk2rplzjlol5xxtq/lib/python3.1
             0/site-packages/setuptools/command/egg_info.py:624: SetuptoolsDeprecationWarning: Custom 'build_py' does not implement 'get_data_file
             s_without_manifest'.
     181       Please extend command classes from setuptools instead of distutils.
     182         warnings.warn(
     183       reading manifest file '/tmp/pip-modern-metadata-mxi30d41/numpy.egg-info/SOURCES.txt'
     184       reading manifest template 'MANIFEST.in'
     185       no previously-included directories found matching 'doc/build'
     186       no previously-included directories found matching 'doc/source/generated'

     ...

     204     Created temporary directory: /tmp/pip-unpack-mzzgq2w0
     205     Building wheels for collected packages: numpy
     206       Created temporary directory: /tmp/pip-wheel-j8e6p8az
     207       Destination directory: /tmp/pip-wheel-j8e6p8az
     208       Building wheel for numpy (pyproject.toml): started
     209       Running command Building wheel for numpy (pyproject.toml)
  >> 210     setup.py:66: RuntimeWarning: NumPy 1.20.3 may not yet support Python 3.10.
     211         warnings.warn(
     212       Running from numpy source directory.
  >> 213       /tmp/omsai/spack-stage/spack-stage-py-numpy-1.20.3-377ao7pqhz7i3ozkmv5upsm7nqhhxdiu/spack-src/tools/cythonize.py:67: DeprecationWar
             ning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential altern
             atives
     214         from distutils.version import LooseVersion
     215       numpy/random/_bounded_integers.pxd.in has not changed
     216       Processing numpy/random/_bounded_integers.pyx
     217       numpy/random/mtrand.pyx has not changed
     218       numpy/random/_pcg64.pyx has not changed
     219       numpy/random/bit_generator.pyx has not changed

     ...

     268           libraries = ['openblas', 'openblas']
     269           library_dirs = ['/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/openblas-0.3.21-3ygpqfxrwpic6dibpjdtqxyszuxa
             3y5h/lib']
     270           language = c
     271           define_macros = [('HAVE_CBLAS', None)]
     272           runtime_library_dirs = ['/home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/openblas-0.3.21-3ygpqfxrwpic6dibpjdt
             qxyszuxa3y5h/lib']
     273     
  >> 274     /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/lib/python3.10/dist
             utils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
     275         warnings.warn(msg)
     276       running bdist_wheel
     277       running build
     278       running config_cc
     279       unifing config_cc, config, build_clib, build_ext, build commands --compiler options
     280       running config_fc

     ...

     1089      gcc: numpy/core/src/multiarray/usertypes.c
     1090      gcc: numpy/core/src/multiarray/shape.c
     1091      gcc: numpy/core/src/multiarray/vdot.c
     1092      gcc: build/src.linux-x86_64-3.10/numpy/core/src/multiarray/scalartypes.c
     1093      gcc: build/src.linux-x86_64-3.10/numpy/core/src/npysort/quicksort.c
     1094      numpy/core/src/multiarray/scalartypes.c.src: In function 'float_arrtype_hash':
  >> 1095    numpy/core/src/multiarray/scalartypes.c.src:3175:27: error: incompatible type for argument 1 of '_Py_HashDouble'
     1096       3175 |     return _Py_HashDouble((double) PyArrayScalar_VAL(obj, @name@));
     1097      In file included from /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzc
             v6bi/include/python3.10/Python.h:77,
     1098                       from numpy/core/src/multiarray/scalartypes.c.src:3:
     1099      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/include/python3.1
             0/pyhash.h:10:38: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'double'
     1100         10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
     1101            |                                      ^~~~~~~~~~
  >> 1102    numpy/core/src/multiarray/scalartypes.c.src:3175:12: error: too few arguments to function '_Py_HashDouble'
     1103       3175 |     return _Py_HashDouble((double) PyArrayScalar_VAL(obj, @name@));
     1104            |            ^~~~~~~~~~~~~~
     1105      In file included from /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzc
             v6bi/include/python3.10/Python.h:77,
     1106                       from numpy/core/src/multiarray/scalartypes.c.src:3:
     1107      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/include/python3.1
             0/pyhash.h:10:23: note: declared here
     1108         10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
     1109            |                       ^~~~~~~~~~~~~~
     1110      numpy/core/src/multiarray/scalartypes.c.src: In function 'cfloat_arrtype_hash':
  >> 1111    numpy/core/src/multiarray/scalartypes.c.src:3183:31: error: incompatible type for argument 1 of '_Py_HashDouble'
     1112       3183 |     hashreal = _Py_HashDouble((double)
     1113            |                               ^~~~~~~~
     1114            |                               |
     1115            |                               double
     1116       3184 |             PyArrayScalar_VAL(obj, C@name@).real);
     1117            |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     1118      In file included from /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzc
             v6bi/include/python3.10/Python.h:77,
     1119                       from numpy/core/src/multiarray/scalartypes.c.src:3:
     1120      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/include/python3.1
             0/pyhash.h:10:38: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'double'
     1121         10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
     1122            |                                      ^~~~~~~~~~
  >> 1123    numpy/core/src/multiarray/scalartypes.c.src:3183:16: error: too few arguments to function '_Py_HashDouble'
     1124       3183 |     hashreal = _Py_HashDouble((double)
     1125            |                ^~~~~~~~~~~~~~
     1126      In file included from /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzc
             v6bi/include/python3.10/Python.h:77,
     1127                       from numpy/core/src/multiarray/scalartypes.c.src:3:
     1128      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/include/python3.1
             0/pyhash.h:10:23: note: declared here
     1129         10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
     1130            |                       ^~~~~~~~~~~~~~
  >> 1131    numpy/core/src/multiarray/scalartypes.c.src:3189:31: error: incompatible type for argument 1 of '_Py_HashDouble'
     1132       3189 |     hashimag = _Py_HashDouble((double)
     1133            |                               ^~~~~~~~
     1134            |                               |
     1135            |                               double
     1136       3190 |             PyArrayScalar_VAL(obj, C@name@).imag);
     1137            |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     1138      In file included from /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzc
             v6bi/include/python3.10/Python.h:77,
     1139                       from numpy/core/src/multiarray/scalartypes.c.src:3:
     1140      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/include/python3.1
             0/pyhash.h:10:38: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'double'
     1141         10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
     1142            |                                      ^~~~~~~~~~
  >> 1143    numpy/core/src/multiarray/scalartypes.c.src:3189:16: error: too few arguments to function '_Py_HashDouble'
     1144       3189 |     hashimag = _Py_HashDouble((double)
     1145            |                ^~~~~~~~~~~~~~
     1146      In file included from /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzc
             v6bi/include/python3.10/Python.h:77,
     1147                       from numpy/core/src/multiarray/scalartypes.c.src:3:
     1148      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/include/python3.1
             0/pyhash.h:10:23: note: declared here
     1149         10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
     1150            |                       ^~~~~~~~~~~~~~
     1151      numpy/core/src/multiarray/scalartypes.c.src: In function 'longdouble_arrtype_hash':
  >> 1152    numpy/core/src/multiarray/scalartypes.c.src:3175:27: error: incompatible type for argument 1 of '_Py_HashDouble'
     1153       3175 |     return _Py_HashDouble((double) PyArrayScalar_VAL(obj, @name@));
     1154      In file included from /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzc
             v6bi/include/python3.10/Python.h:77,
     1155                       from numpy/core/src/multiarray/scalartypes.c.src:3:
     1156      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/include/python3.1
             0/pyhash.h:10:38: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'double'
     1157         10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
     1158            |                                      ^~~~~~~~~~
  >> 1159    numpy/core/src/multiarray/scalartypes.c.src:3175:12: error: too few arguments to function '_Py_HashDouble'
     1160       3175 |     return _Py_HashDouble((double) PyArrayScalar_VAL(obj, @name@));
     1161            |            ^~~~~~~~~~~~~~
     1162      In file included from /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzc
             v6bi/include/python3.10/Python.h:77,
     1163                       from numpy/core/src/multiarray/scalartypes.c.src:3:
     1164      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/include/python3.1
             0/pyhash.h:10:23: note: declared here
     1165         10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
     1166            |                       ^~~~~~~~~~~~~~
     1167      numpy/core/src/multiarray/scalartypes.c.src: In function 'clongdouble_arrtype_hash':
  >> 1168    numpy/core/src/multiarray/scalartypes.c.src:3183:31: error: incompatible type for argument 1 of '_Py_HashDouble'
     1169       3183 |     hashreal = _Py_HashDouble((double)
     1170            |                               ^~~~~~~~
     1171            |                               |
     1172            |                               double
     1173       3184 |             PyArrayScalar_VAL(obj, C@name@).real);
     1174            |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     1175      In file included from /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzc
             v6bi/include/python3.10/Python.h:77,
     1176                       from numpy/core/src/multiarray/scalartypes.c.src:3:
     1177      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/include/python3.1
             0/pyhash.h:10:38: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'double'
     1178         10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
     1179            |                                      ^~~~~~~~~~
  >> 1180    numpy/core/src/multiarray/scalartypes.c.src:3183:16: error: too few arguments to function '_Py_HashDouble'
     1181       3183 |     hashreal = _Py_HashDouble((double)
     1182            |                ^~~~~~~~~~~~~~
     1183      In file included from /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzc
             v6bi/include/python3.10/Python.h:77,
     1184                       from numpy/core/src/multiarray/scalartypes.c.src:3:
     1185      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/include/python3.1
             0/pyhash.h:10:23: note: declared here
     1186         10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
     1187            |                       ^~~~~~~~~~~~~~
  >> 1188    numpy/core/src/multiarray/scalartypes.c.src:3189:31: error: incompatible type for argument 1 of '_Py_HashDouble'
     1189       3189 |     hashimag = _Py_HashDouble((double)
     1190            |                               ^~~~~~~~
     1191            |                               |
     1192            |                               double
     1193       3190 |             PyArrayScalar_VAL(obj, C@name@).imag);
     1194            |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     1195      In file included from /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzc
             v6bi/include/python3.10/Python.h:77,
     1196                       from numpy/core/src/multiarray/scalartypes.c.src:3:
     1197      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/include/python3.1
             0/pyhash.h:10:38: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'double'
     1198         10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
     1199            |                                      ^~~~~~~~~~
  >> 1200    numpy/core/src/multiarray/scalartypes.c.src:3189:16: error: too few arguments to function '_Py_HashDouble'
     1201       3189 |     hashimag = _Py_HashDouble((double)
     1202            |                ^~~~~~~~~~~~~~
     1203      In file included from /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzc
             v6bi/include/python3.10/Python.h:77,
     1204                       from numpy/core/src/multiarray/scalartypes.c.src:3:
     1205      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/include/python3.1
             0/pyhash.h:10:23: note: declared here
     1206         10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
     1207            |                       ^~~~~~~~~~~~~~
     1208      numpy/core/src/multiarray/scalartypes.c.src: In function 'half_arrtype_hash':
  >> 1209    numpy/core/src/multiarray/scalartypes.c.src:3205:27: error: incompatible type for argument 1 of '_Py_HashDouble'
     1210       3205 |     return _Py_HashDouble(npy_half_to_double(PyArrayScalar_VAL(obj, Half)));
     1211            |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     1212            |                           |
     1213            |                           double
     1214      In file included from /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzc
             v6bi/include/python3.10/Python.h:77,
     1215                       from numpy/core/src/multiarray/scalartypes.c.src:3:
     1216      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/include/python3.1
             0/pyhash.h:10:38: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'double'
     1217         10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
     1218            |                                      ^~~~~~~~~~
  >> 1219    numpy/core/src/multiarray/scalartypes.c.src:3205:12: error: too few arguments to function '_Py_HashDouble'
     1220       3205 |     return _Py_HashDouble(npy_half_to_double(PyArrayScalar_VAL(obj, Half)));
     1221            |            ^~~~~~~~~~~~~~
     1222      In file included from /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzc
             v6bi/include/python3.10/Python.h:77,
     1223                       from numpy/core/src/multiarray/scalartypes.c.src:3:
     1224      /home/omsai/src/spack/opt/spack/linux-pureos10-skylake/gcc-10.2.1/python-3.10.10-occkzek3j3sijcxir2bf3q5adjzcv6bi/include/python3.1
             0/pyhash.h:10:23: note: declared here
     1225         10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);

See build log for details:
  /tmp/omsai/spack-stage/spack-stage-py-numpy-1.20.3-377ao7pqhz7i3ozkmv5upsm7nqhhxdiu/spack-build-out.txt

</pre></details>


### Information on your system

* **Spack:** 0.20.0.dev0 (f68317931fac51a23a85b5f3650973657f644bc4)
* **Python:** 3.9.2
* **Platform:** linux-pureos10-skylake [NB: PureOS 10 is essentially Debian 10]
* **Concretizer:** clingo

### Additional information

* [spack-build-out.txt](https://github.com/spack/spack/files/11302391/spack-build-out.txt)
* [spack-build-env.txt](https://github.com/spack/spack/files/11302392/spack-build-env.txt)

Maintainers: @adamjstewart  @pradyunsg  @rgommers

### General information

- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform
- [X] I have run `spack maintainers <name-of-the-package>` and **@mentioned** any maintainers
- [X] I have uploaded the build log and environment files
- [X] I have searched the issues of this repo and believe this is not a duplicate


Discussion:
In the build log above you can see there's a warning that the older version of `py-numpy` doesn't yet support `python@3.10` and indeed I can work around the error by installing `python@3.9`. If you think that's indeed the issue, then maybe the python dependency could be modified to be:

```diff
diff --git a/var/spack/repos/builtin/packages/py-numpy/package.py b/var/spack/repos/builtin/packages/py-numpy/package.py
index f50175048b..6e60e5a6c1 100644
--- a/var/spack/repos/builtin/packages/py-numpy/package.py
+++ b/var/spack/repos/builtin/packages/py-numpy/package.py
@@ -93,8 +93,9 @@ class PyNumpy(PythonPackage):
     depends_on("python@2.7:2.8,3.4:3.8", type=("build", "link", "run"), when="@1.14:1.15")
     depends_on("python@2.7:2.8,3.5:3.9", type=("build", "link", "run"), when="@1.16")
     depends_on("python@3.5:3.9", type=("build", "link", "run"), when="@1.17:1.18")
-    depends_on("python@3.6:3.10", type=("build", "link", "run"), when="@1.19")
-    depends_on("python@3.7:3.10", type=("build", "link", "run"), when="@1.20:1.21")
+    depends_on("python@3.6:3.9", type=("build", "link", "run"), when="@1.19")
+    depends_on("python@3.7:3.9", type=("build", "link", "run"), when="@1.20")
+    depends_on("python@3.7:3.10", type=("build", "link", "run"), when="@1.21")
     depends_on("python@3.8:", type=("build", "link", "run"), when="@1.22:")
     # https://github.com/spack/spack/pull/32078
     depends_on("py-setuptools@:63", type=("build", "run"))
```
The build is failing because this warning is correct:
```
setup.py:66: RuntimeWarning: NumPy 1.20.3 may not yet support Python 3.10.
```

The constraint [here](https://github.com/spack/spack/blob/806f630c8f83d499e97eb201d63ad8c8f4659670/var/spack/repos/builtin/packages/py-numpy/package.py) is:
```
depends_on("python@3.7:3.10", type=("build", "link", "run"), when="@1.20:1.21")
```
so I don't understand the resolution. The `:` is a little confusing, because the `^py-numpy@:1.20` constraint also picks a `1.20.x` release. I thought the `:` meant "smaller than", but apparently not. In that case, more upper bounds are set too loose, and may or may not work.
@rgommers should we just use the versions of Python that wheels exist for to determine Python support in numpy/scipy? I recently did this for PyTorch/TF because they're so tightly tied to Python version.

Spack version ranges are inclusive, so `^py-numpy@1.20` means <= 1.20.X

Resolving patch:
diff --git a/var/spack/repos/builtin/packages/py-numpy/package.py b/var/spack/repos/builtin/packages/py-numpy/package.py
--- a/var/spack/repos/builtin/packages/py-numpy/package.py
+++ b/var/spack/repos/builtin/packages/py-numpy/package.py
@@ -23,6 +23,7 @@ class PyNumpy(PythonPackage):
     maintainers("adamjstewart", "rgommers")
 
     version("main", branch="main")
+    version("1.24.3", sha256="ab344f1bf21f140adab8e47fdbc7c35a477dc01408791f8ba00d018dd0bc5155")
     version("1.24.2", sha256="003a9f530e880cb2cd177cba1af7220b9aa42def9c4afc2a2fc3ee6be7eb2b22")
     version("1.24.1", sha256="2386da9a471cc00a1f47845e27d916d5ec5346ae9696e01a8a34760858fe9dd2")
     version("1.24.0", sha256="c4ab7c9711fe6b235e86487ca74c1b092a6dd59a3cb45b63241ea0a148501853")
@@ -81,21 +82,18 @@ class PyNumpy(PythonPackage):
     version("1.15.0", sha256="f28e73cf18d37a413f7d5de35d024e6b98f14566a10d82100f9dc491a7d449f9")
     version("1.14.6", sha256="1250edf6f6c43e1d7823f0967416bc18258bb271dc536298eb0ea00a9e45b80a")
     version("1.14.5", sha256="a4a433b3a264dbc9aa9c7c241e87c0358a503ea6394f8737df1683c7c9a102ac")
-    version("1.14.4", sha256="2185a0f31ecaa0792264fa968c8e0ba6d96acf144b26e2e1d1cd5b77fc11a691")
-    version("1.14.3", sha256="9016692c7d390f9d378fc88b7a799dc9caa7eb938163dda5276d3f3d6f75debf")
-    version("1.14.2", sha256="facc6f925c3099ac01a1f03758100772560a0b020fb9d70f210404be08006bcb")
-    version("1.14.1", sha256="fa0944650d5d3fb95869eaacd8eedbd2d83610c85e271bd9d3495ffa9bc4dc9c")
-    version("1.14.0", sha256="3de643935b212307b420248018323a44ec51987a336d1d747c1322afc3c099fb")
 
     variant("blas", default=True, description="Build with BLAS support")
     variant("lapack", default=True, description="Build with LAPACK support")
 
-    depends_on("python@2.7:2.8,3.4:3.8", type=("build", "link", "run"), when="@1.14:1.15")
-    depends_on("python@2.7:2.8,3.5:3.9", type=("build", "link", "run"), when="@1.16")
-    depends_on("python@3.5:3.9", type=("build", "link", "run"), when="@1.17:1.18")
-    depends_on("python@3.6:3.10", type=("build", "link", "run"), when="@1.19")
-    depends_on("python@3.7:3.10", type=("build", "link", "run"), when="@1.20:1.21")
-    depends_on("python@3.8:", type=("build", "link", "run"), when="@1.22:")
+    # Based on wheel availability on PyPI
+    depends_on("python@3.8:3.11", when="@1.23.2:", type=("build", "link", "run"))
+    depends_on("python@3.8:3.10", when="@1.22:1.23.1", type=("build", "link", "run"))
+    depends_on("python@:3.10", when="@1.21.2:1.21", type=("build", "link", "run"))
+    depends_on("python@:3.9", when="@1.19.3:1.21.1", type=("build", "link", "run"))
+    depends_on("python@:3.8", when="@1.17.3:1.19.2", type=("build", "link", "run"))
+    depends_on("python@:3.7", when="@1.14.5:1.17.2", type=("build", "link", "run"))
+
     # https://github.com/spack/spack/pull/32078
     depends_on("py-setuptools@:63", type=("build", "run"))
     depends_on("py-setuptools@:59", when="@:1.22.1", type=("build", "run"))


Test patch: