spack/lib/spack
Todd Gamblin 0da1fae709
Consolidate definition of Spack's extra sys.path components (#41816)
To work properly, Spack requires a few directories from its repository to be added to
`sys.path`. Previously these were buried in `spack_installable.main.main()`, but it's
sometimes useful to get the paths separately, e.g., if you want to set up your own
functioning spack environment.

With this change, adding the paths is much simpler:

```python
import spack_installable
sys.path[:0] = get_spack_sys_paths(spack_prefix)
```

- [x] Add `get_spack_sys_paths()` method with extra paths in order.
- [x] Refactor `spack_installable.main.main()` to use it.
2023-12-21 16:25:12 -08:00
..
docs containers.rst: small docs improvement (#41792) 2023-12-20 11:54:41 +01:00
env cc: Ensure that user-specified flags take precedence over others (#37376) 2023-06-18 14:07:08 -07:00
external archspec: update to v0.2.2 (#40917) 2023-11-07 07:44:52 +01:00
llnl bootstrap: Don't catch Ctrl-C (#41449) 2023-12-06 14:58:14 +01:00
spack Improve error reporting when Clingo install is broken (#41181) 2023-12-21 13:56:09 -08:00
spack_installable Consolidate definition of Spack's extra sys.path components (#41816) 2023-12-21 16:25:12 -08:00