sandialabs / spack-manager

A project and machine deployment model using Spack
https://sandialabs.github.io/spack-manager/
Other
25 stars 17 forks source link

`build-env-dive` breaking on exawind-manager #599

Closed psakievich closed 5 months ago

psakievich commented 5 months ago
$ build-env-dive nalu-wind
+ spack build-env --dump /Users/psakiev/scratch/exawind-manager/spack-manager/.tmp/spack-build-env.txt nalu-wind
==> Dumping a source-able environment to /Users/psakiev/scratch/exawind-manager/spack-manager/.tmp/spack-build-env.txt
+ bash --rcfile <(echo 'export SPACK_ENV=/Users/psakiev/scratch/exawind-manager/environments/nalu-fields; . /Users/psakiev/scratch/exawind-manager/spack-manager/.tmp/spack-build-env.txt; spack cd -b nalu-wind')
==> Error: Package 'spack.pkg.exawind.nalu-wind' not found.
Use 'spack create' to create a new package.

Did you mean one of the following packages?
  nalu-wind
  amr-wind
  libunwind

The issue is we modify PYTHONPATH to preserve the imports of our custom packages. Just exporting the build env breaks. Need to preserve this or more of the user env.