spack/lib/spack
Massimiliano Culpo 40788cf49a
Add a __reduce__ method to Spec (#25658)
* Add a __reduce__ method to Spec

fixes #23892

The recursion limit seems to be due to the default
way in which a Spec is serialized, following all
the attributes. It's still not clear to me why this
is related to being in an environment, but in any
case we already have methods to serialize Specs to
disk in JSON and YAML format. Here we use them to
pickle a Spec instance too.

* Downgrade to build-hash

Hopefully nothing will change the package in
between serializing the spec and sending it
to the child process.

* Add support for Python 2
2021-08-28 07:31:16 -07:00
..
docs Remove references to self.install_test_root from packaging guide (#25238) 2021-08-26 19:22:40 +02:00
env Add ld.gold and ld.lld compiler wrapper (#25626) 2021-08-27 13:16:26 +02:00
external Use a patched argparse only in Python 2.X (#25376) 2021-08-17 08:52:51 -07:00
llnl Fix: --overwrite backs up old install dir, but it gets destroyed anyways (#25583) 2021-08-27 12:41:24 -07:00
spack Add a __reduce__ method to Spec (#25658) 2021-08-28 07:31:16 -07:00