Compare commits
165 Commits
develop-20
...
develop-20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70534ac9d4 | ||
|
|
b369d8b250 | ||
|
|
4d2319a785 | ||
|
|
d6a9511f39 | ||
|
|
dd69b646ad | ||
|
|
b670205e54 | ||
|
|
d6d8800466 | ||
|
|
7a32954f7f | ||
|
|
92564ecd42 | ||
|
|
c1258a1431 | ||
|
|
d46ac9b1e4 | ||
|
|
2e472a13e5 | ||
|
|
7edb525599 | ||
|
|
93cd216603 | ||
|
|
c1d385ada2 | ||
|
|
464390962f | ||
|
|
16734cd8c6 | ||
|
|
1dd9eeb0c6 | ||
|
|
f4ef0aec28 | ||
|
|
ea2c70a21a | ||
|
|
72ddc03da9 | ||
|
|
32de71b0b6 | ||
|
|
e94d5b935f | ||
|
|
85649be232 | ||
|
|
c23d2cdb2b | ||
|
|
dc5dd896a2 | ||
|
|
43f23589ef | ||
|
|
5085f635dd | ||
|
|
46da7952d3 | ||
|
|
72783bcb0a | ||
|
|
f4d2ff0068 | ||
|
|
a2b7fee3fe | ||
|
|
2ebf2df421 | ||
|
|
e725aa527e | ||
|
|
7455c8d173 | ||
|
|
99e2bce99f | ||
|
|
4204d16fd3 | ||
|
|
e76677cbd5 | ||
|
|
57357a540f | ||
|
|
97e0b39b32 | ||
|
|
247da9ea7a | ||
|
|
07f89a73d1 | ||
|
|
60cfdcb6cc | ||
|
|
1c9b042d3a | ||
|
|
c424611010 | ||
|
|
35963d7d7d | ||
|
|
7e62ca864a | ||
|
|
fa9ef0ac89 | ||
|
|
55d9fe20e5 | ||
|
|
434a8d54d4 | ||
|
|
7328c64fc7 | ||
|
|
4be7b98fd2 | ||
|
|
25ce6cce47 | ||
|
|
418a9194e7 | ||
|
|
d16a578242 | ||
|
|
aee2f5cf41 | ||
|
|
ca8ea63796 | ||
|
|
3b21ff109f | ||
|
|
d503f03473 | ||
|
|
770d2fe4d7 | ||
|
|
fcc35b70bb | ||
|
|
074387b29c | ||
|
|
4d26b93070 | ||
|
|
9d15a006f8 | ||
|
|
7e69650806 | ||
|
|
142469f92e | ||
|
|
cb6cb023d2 | ||
|
|
920614a799 | ||
|
|
5be40f1a5a | ||
|
|
aa0ab3b38b | ||
|
|
85c125a0f5 | ||
|
|
2842c6d191 | ||
|
|
e8309b16fc | ||
|
|
4dd55e1b67 | ||
|
|
227fa1a482 | ||
|
|
ee47d877ff | ||
|
|
4b4be2e2c2 | ||
|
|
0e6e61b32f | ||
|
|
79027884c7 | ||
|
|
beadf06caa | ||
|
|
fc24be5c2b | ||
|
|
8d5ece07d1 | ||
|
|
cf06b395b7 | ||
|
|
fd51f1ce65 | ||
|
|
0576ef081a | ||
|
|
20a8ba77b0 | ||
|
|
9b4c5d1c55 | ||
|
|
6622f7a89c | ||
|
|
d463b172a6 | ||
|
|
ab6fa2680f | ||
|
|
d7559c8caf | ||
|
|
bd1fedcc18 | ||
|
|
9254ef5b3f | ||
|
|
39ad98a359 | ||
|
|
9d07efa0dc | ||
|
|
de2caf956d | ||
|
|
6b296fe8ad | ||
|
|
9cccdc5424 | ||
|
|
b4f048cc14 | ||
|
|
5fd15dc541 | ||
|
|
0471af4c16 | ||
|
|
fb1a509964 | ||
|
|
4f00d7cc9b | ||
|
|
91726147ae | ||
|
|
7998d8ed52 | ||
|
|
1061db7c8c | ||
|
|
39f38d3f28 | ||
|
|
173dcd6be8 | ||
|
|
de2be4d999 | ||
|
|
619a0a8d81 | ||
|
|
598abf0bef | ||
|
|
99a63fdff2 | ||
|
|
64773932b2 | ||
|
|
bc4b5dd62e | ||
|
|
0652b01eca | ||
|
|
6053fc9b6e | ||
|
|
7c9582a172 | ||
|
|
2ffa63470c | ||
|
|
7bf7292a87 | ||
|
|
ef55fe7f4b | ||
|
|
6e8fe490e0 | ||
|
|
450e56f207 | ||
|
|
d33616c291 | ||
|
|
4a37bb38ce | ||
|
|
6f2d07e99a | ||
|
|
8f415cd2b5 | ||
|
|
e3d3e79037 | ||
|
|
dbd290d1ac | ||
|
|
e6bb795bcc | ||
|
|
ab6fa2f6d3 | ||
|
|
8fe3fe4918 | ||
|
|
cb770eb8e3 | ||
|
|
0a03a92e78 | ||
|
|
7f9019c1ca | ||
|
|
1b9d001f6a | ||
|
|
a52d817fa0 | ||
|
|
ec286e857f | ||
|
|
690a6045a9 | ||
|
|
0a070512e6 | ||
|
|
cb37f973d9 | ||
|
|
33740c8d24 | ||
|
|
e374f8fb66 | ||
|
|
0394def68b | ||
|
|
0782097775 | ||
|
|
460bc82632 | ||
|
|
880eb36a1f | ||
|
|
1f3b4e116f | ||
|
|
9b8835ba79 | ||
|
|
fb1d4f8907 | ||
|
|
f635337af8 | ||
|
|
8f145f5e8e | ||
|
|
022ae8503a | ||
|
|
3c64821c64 | ||
|
|
866785bd74 | ||
|
|
60d321012e | ||
|
|
8ee5cf4b31 | ||
|
|
d2a2ae3699 | ||
|
|
547e324ee5 | ||
|
|
693c74324a | ||
|
|
dcf710a32d | ||
|
|
38276d13c2 | ||
|
|
611b0f19b3 | ||
|
|
337d9bebf8 | ||
|
|
71512f5682 | ||
|
|
a7373b8a31 |
2
.github/workflows/bin/setup_git.ps1
vendored
2
.github/workflows/bin/setup_git.ps1
vendored
@@ -1,5 +1,3 @@
|
|||||||
# (c) 2022 Lawrence Livermore National Laboratory
|
|
||||||
|
|
||||||
git config --global user.email "spack@example.com"
|
git config --global user.email "spack@example.com"
|
||||||
git config --global user.name "Test User"
|
git config --global user.name "Test User"
|
||||||
git config --global core.longpaths true
|
git config --global core.longpaths true
|
||||||
|
|||||||
2
.github/workflows/coverage.yml
vendored
2
.github/workflows/coverage.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
|||||||
- run: coverage xml
|
- run: coverage xml
|
||||||
|
|
||||||
- name: "Upload coverage report to CodeCov"
|
- name: "Upload coverage report to CodeCov"
|
||||||
uses: codecov/codecov-action@05f5a9cfad807516dbbef9929c4a42df3eb78766
|
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303
|
||||||
with:
|
with:
|
||||||
verbose: true
|
verbose: true
|
||||||
fail_ci_if_error: false
|
fail_ci_if_error: false
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ black==24.10.0
|
|||||||
clingo==5.7.1
|
clingo==5.7.1
|
||||||
flake8==7.1.1
|
flake8==7.1.1
|
||||||
isort==5.13.2
|
isort==5.13.2
|
||||||
mypy==1.8.0
|
mypy==1.11.2
|
||||||
types-six==1.17.0.20241205
|
types-six==1.17.0.20241205
|
||||||
vermin==1.6.0
|
vermin==1.6.0
|
||||||
|
|||||||
6
.github/workflows/valid-style.yml
vendored
6
.github/workflows/valid-style.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
|
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.13'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
- name: Install Python Packages
|
- name: Install Python Packages
|
||||||
run: |
|
run: |
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
|
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.13'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
- name: Install Python packages
|
- name: Install Python packages
|
||||||
run: |
|
run: |
|
||||||
@@ -58,7 +58,7 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
with_coverage: ${{ inputs.with_coverage }}
|
with_coverage: ${{ inputs.with_coverage }}
|
||||||
python_version: '3.11'
|
python_version: '3.13'
|
||||||
# Check that spack can bootstrap the development environment on Python 3.6 - RHEL8
|
# Check that spack can bootstrap the development environment on Python 3.6 - RHEL8
|
||||||
bootstrap-dev-rhel8:
|
bootstrap-dev-rhel8:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -8,8 +8,9 @@ or http://www.apache.org/licenses/LICENSE-2.0) or the MIT license,
|
|||||||
Copyrights and patents in the Spack project are retained by contributors.
|
Copyrights and patents in the Spack project are retained by contributors.
|
||||||
No copyright assignment is required to contribute to Spack.
|
No copyright assignment is required to contribute to Spack.
|
||||||
|
|
||||||
Spack was originally distributed under the LGPL-2.1 license. Consent from
|
Spack was originally developed in 2013 by Lawrence Livermore National
|
||||||
contributors to relicense to Apache-2.0/MIT is documented at
|
Security, LLC. It was originally distributed under the LGPL-2.1 license.
|
||||||
|
Consent from contributors to relicense to Apache-2.0/MIT is documented at
|
||||||
https://github.com/spack/spack/issues/9137.
|
https://github.com/spack/spack/issues/9137.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2013-2024 LLNS, LLC and other Spack Project Developers.
|
Copyright (c) Spack Project Developers.
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright sbang project developers. See COPYRIGHT file for details.
|
||||||
# sbang project developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# -*- python -*-
|
# -*- python -*-
|
||||||
#
|
#
|
||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
:: Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
:: Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
:: Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
::
|
::
|
||||||
:: SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
:: SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
::#######################################################################
|
::#######################################################################
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
# #######################################################################
|
# #######################################################################
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ packages:
|
|||||||
unwind: [libunwind]
|
unwind: [libunwind]
|
||||||
uuid: [util-linux-uuid, libuuid]
|
uuid: [util-linux-uuid, libuuid]
|
||||||
wasi-sdk: [wasi-sdk-prebuilt]
|
wasi-sdk: [wasi-sdk-prebuilt]
|
||||||
|
xkbdata-api: [xkeyboard-config, xkbdata]
|
||||||
xxd: [xxd-standalone, vim]
|
xxd: [xxd-standalone, vim]
|
||||||
yacc: [bison, byacc]
|
yacc: [bison, byacc]
|
||||||
ziglang: [zig]
|
ziglang: [zig]
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
@@ -26,14 +25,23 @@ These settings can be overridden in ``etc/spack/config.yaml`` or
|
|||||||
The location where Spack will install packages and their dependencies.
|
The location where Spack will install packages and their dependencies.
|
||||||
Default is ``$spack/opt/spack``.
|
Default is ``$spack/opt/spack``.
|
||||||
|
|
||||||
---------------------------------------------------
|
---------------
|
||||||
``install_hash_length`` and ``install_path_scheme``
|
``projections``
|
||||||
---------------------------------------------------
|
---------------
|
||||||
|
|
||||||
The default Spack installation path can be very long and can create problems
|
.. warning::
|
||||||
for scripts with hardcoded shebangs. Additionally, when using the Intel
|
|
||||||
compiler, and if there is also a long list of dependencies, the compiler may
|
Modifying projections of the install tree is strongly discouraged.
|
||||||
segfault. If you see the following:
|
|
||||||
|
By default Spack installs all packages into a unique directory relative to the install
|
||||||
|
tree root with the following layout:
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
{architecture}/{compiler.name}-{compiler.version}/{name}-{version}-{hash}
|
||||||
|
|
||||||
|
In very rare cases, it may be necessary to reduce the length of this path. For example,
|
||||||
|
very old versions of the Intel compiler are known to segfault when input paths are too long:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
@@ -41,36 +49,25 @@ segfault. If you see the following:
|
|||||||
** Segmentation violation signal raised. **
|
** Segmentation violation signal raised. **
|
||||||
Access violation or stack overflow. Please contact Intel Support for assistance.
|
Access violation or stack overflow. Please contact Intel Support for assistance.
|
||||||
|
|
||||||
it may be because variables containing dependency specs may be too long. There
|
Another case is Python and R packages with many runtime dependencies, which can result
|
||||||
are two parameters to help with long path names. Firstly, the
|
in very large ``PYTHONPATH`` and ``R_LIBS`` environment variables. This can cause the
|
||||||
``install_hash_length`` parameter can set the length of the hash in the
|
``execve`` system call to fail with ``E2BIG``, preventing processes from starting.
|
||||||
installation path from 1 to 32. The default path uses the full 32 characters.
|
|
||||||
|
|
||||||
Secondly, it is also possible to modify the entire installation
|
For this reason, Spack allows users to modify the installation layout through custom
|
||||||
scheme. By default Spack uses
|
projections. For example
|
||||||
``{architecture}/{compiler.name}-{compiler.version}/{name}-{version}-{hash}``
|
|
||||||
where the tokens that are available for use in this directive are the
|
|
||||||
same as those understood by the :meth:`~spack.spec.Spec.format`
|
|
||||||
method. Using this parameter it is possible to use a different package
|
|
||||||
layout or reduce the depth of the installation paths. For example
|
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
config:
|
config:
|
||||||
install_path_scheme: '{name}/{version}/{hash:7}'
|
install_tree:
|
||||||
|
root: $spack/opt/spack
|
||||||
|
projections:
|
||||||
|
all: "{name}/{version}/{hash:16}"
|
||||||
|
|
||||||
would install packages into sub-directories using only the package
|
would install packages into sub-directories using only the package name, version and a
|
||||||
name, version and a hash length of 7 characters.
|
hash length of 16 characters.
|
||||||
|
|
||||||
When using either parameter to set the hash length it only affects the
|
Notice that reducing the hash length increases the likelihood of hash collisions.
|
||||||
representation of the hash in the installation directory. You
|
|
||||||
should be aware that the smaller the hash length the more likely
|
|
||||||
naming conflicts will occur. These parameters are independent of those
|
|
||||||
used to configure module names.
|
|
||||||
|
|
||||||
.. warning:: Modifying the installation hash length or path scheme after
|
|
||||||
packages have been installed will prevent Spack from being
|
|
||||||
able to find the old installation directories.
|
|
||||||
|
|
||||||
--------------------
|
--------------------
|
||||||
``build_stage``
|
``build_stage``
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
@@ -237,8 +236,7 @@ for details):
|
|||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
@@ -4900,15 +4898,15 @@ If your package has a virtual dependency like ``mpi``, then referring to
|
|||||||
``spec["mpi"]`` within ``install()`` will get you the concrete ``mpi``
|
``spec["mpi"]`` within ``install()`` will get you the concrete ``mpi``
|
||||||
implementation in your dependency DAG. That is a spec object just like
|
implementation in your dependency DAG. That is a spec object just like
|
||||||
the one passed to install, only the MPI implementations all set some
|
the one passed to install, only the MPI implementations all set some
|
||||||
additional properties on it to help you out. E.g., in mvapich2, you'll
|
additional properties on it to help you out. E.g., in openmpi, you'll
|
||||||
find this:
|
find this:
|
||||||
|
|
||||||
.. literalinclude:: _spack_root/var/spack/repos/builtin/packages/mvapich2/package.py
|
.. literalinclude:: _spack_root/var/spack/repos/builtin/packages/openmpi/package.py
|
||||||
:pyobject: Mvapich2.setup_dependent_package
|
:pyobject: Openmpi.setup_dependent_package
|
||||||
|
|
||||||
That code allows the mvapich2 package to associate an ``mpicc`` property
|
That code allows the ``openmpi`` package to associate an ``mpicc`` property
|
||||||
with the ``mvapich2`` node in the DAG, so that dependents can access it.
|
with the ``openmpi`` node in the DAG, so that dependents can access it.
|
||||||
``openmpi`` and ``mpich`` do similar things. So, no matter what MPI
|
``mvapich2`` and ``mpich`` do similar things. So, no matter what MPI
|
||||||
you're using, spec["mpi"].mpicc gets you the location of the MPI
|
you're using, spec["mpi"].mpicc gets you the location of the MPI
|
||||||
compilers. This allows us to have a fairly simple polymorphic interface
|
compilers. This allows us to have a fairly simple polymorphic interface
|
||||||
for information about virtual dependencies like MPI.
|
for information about virtual dependencies like MPI.
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ sphinx_design==0.6.1
|
|||||||
sphinx-rtd-theme==3.0.2
|
sphinx-rtd-theme==3.0.2
|
||||||
python-levenshtein==0.26.1
|
python-levenshtein==0.26.1
|
||||||
docutils==0.21.2
|
docutils==0.21.2
|
||||||
pygments==2.18.0
|
pygments==2.19.1
|
||||||
urllib3==2.3.0
|
urllib3==2.3.0
|
||||||
pytest==8.3.4
|
pytest==8.3.4
|
||||||
isort==5.13.2
|
isort==5.13.2
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
.. Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
3
lib/spack/env/cc
vendored
3
lib/spack/env/cc
vendored
@@ -1,8 +1,7 @@
|
|||||||
#!/bin/sh -f
|
#!/bin/sh -f
|
||||||
# shellcheck disable=SC2034 # evals in this script fool shellcheck
|
# shellcheck disable=SC2034 # evals in this script fool shellcheck
|
||||||
#
|
#
|
||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
3
lib/spack/external/__init__.py
vendored
3
lib/spack/external/__init__.py
vendored
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
"""Path primitives that just require Python standard library."""
|
"""Path primitives that just require Python standard library."""
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
"""String manipulation functions that do not have other dependencies than Python
|
"""String manipulation functions that do not have other dependencies than Python
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
"""URL primitives that just require Python standard library."""
|
"""URL primitives that just require Python standard library."""
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
import collections
|
import collections
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
"""Classes and functions to register audit checks for various parts of
|
"""Classes and functions to register audit checks for various parts of
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
@@ -592,32 +591,18 @@ def file_matches(f: IO[bytes], regex: llnl.util.lang.PatternBytes) -> bool:
|
|||||||
f.seek(0)
|
f.seek(0)
|
||||||
|
|
||||||
|
|
||||||
def deps_to_relocate(spec):
|
def specs_to_relocate(spec: spack.spec.Spec) -> List[spack.spec.Spec]:
|
||||||
"""Return the transitive link and direct run dependencies of the spec.
|
"""Return the set of specs that may be referenced in the install prefix of the provided spec.
|
||||||
|
We currently include non-external transitive link and direct run dependencies."""
|
||||||
This is a special traversal for dependencies we need to consider when relocating a package.
|
specs = [
|
||||||
|
|
||||||
Package binaries, scripts, and other files may refer to the prefixes of dependencies, so
|
|
||||||
we need to rewrite those locations when dependencies are in a different place at install time
|
|
||||||
than they were at build time.
|
|
||||||
|
|
||||||
This traversal covers transitive link dependencies and direct run dependencies because:
|
|
||||||
|
|
||||||
1. Spack adds RPATHs for transitive link dependencies so that packages can find needed
|
|
||||||
dependency libraries.
|
|
||||||
2. Packages may call any of their *direct* run dependencies (and may bake their paths into
|
|
||||||
binaries or scripts), so we also need to search for run dependency prefixes when relocating.
|
|
||||||
|
|
||||||
This returns a deduplicated list of transitive link dependencies and direct run dependencies.
|
|
||||||
"""
|
|
||||||
deps = [
|
|
||||||
s
|
s
|
||||||
for s in itertools.chain(
|
for s in itertools.chain(
|
||||||
spec.traverse(root=True, deptype="link"), spec.dependencies(deptype="run")
|
spec.traverse(root=True, deptype="link", order="breadth", key=traverse.by_dag_hash),
|
||||||
|
spec.dependencies(deptype="run"),
|
||||||
)
|
)
|
||||||
if not s.external
|
if not s.external
|
||||||
]
|
]
|
||||||
return llnl.util.lang.dedupe(deps, key=lambda s: s.dag_hash())
|
return list(llnl.util.lang.dedupe(specs, key=lambda s: s.dag_hash()))
|
||||||
|
|
||||||
|
|
||||||
def get_buildinfo_dict(spec):
|
def get_buildinfo_dict(spec):
|
||||||
@@ -631,7 +616,7 @@ def get_buildinfo_dict(spec):
|
|||||||
# "relocate_binaries": [],
|
# "relocate_binaries": [],
|
||||||
# "relocate_links": [],
|
# "relocate_links": [],
|
||||||
"hardlinks_deduped": True,
|
"hardlinks_deduped": True,
|
||||||
"hash_to_prefix": {d.dag_hash(): str(d.prefix) for d in deps_to_relocate(spec)},
|
"hash_to_prefix": {d.dag_hash(): str(d.prefix) for d in specs_to_relocate(spec)},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1113,7 +1098,7 @@ def _exists_in_buildcache(spec: spack.spec.Spec, tmpdir: str, out_url: str) -> E
|
|||||||
|
|
||||||
|
|
||||||
def prefixes_to_relocate(spec):
|
def prefixes_to_relocate(spec):
|
||||||
prefixes = [s.prefix for s in deps_to_relocate(spec)]
|
prefixes = [s.prefix for s in specs_to_relocate(spec)]
|
||||||
prefixes.append(spack.hooks.sbang.sbang_install_path())
|
prefixes.append(spack.hooks.sbang.sbang_install_path())
|
||||||
prefixes.append(str(spack.store.STORE.layout.root))
|
prefixes.append(str(spack.store.STORE.layout.root))
|
||||||
return prefixes
|
return prefixes
|
||||||
@@ -2190,7 +2175,12 @@ def relocate_package(spec):
|
|||||||
old_spack_prefix = str(buildinfo.get("spackprefix"))
|
old_spack_prefix = str(buildinfo.get("spackprefix"))
|
||||||
old_rel_prefix = buildinfo.get("relative_prefix")
|
old_rel_prefix = buildinfo.get("relative_prefix")
|
||||||
old_prefix = os.path.join(old_layout_root, old_rel_prefix)
|
old_prefix = os.path.join(old_layout_root, old_rel_prefix)
|
||||||
rel = buildinfo.get("relative_rpaths", False)
|
|
||||||
|
# Warn about old style tarballs created with the now removed --rel flag.
|
||||||
|
if buildinfo.get("relative_rpaths", False):
|
||||||
|
tty.warn(
|
||||||
|
f"Tarball for {spec} uses relative rpaths, " "which can cause library loading issues."
|
||||||
|
)
|
||||||
|
|
||||||
# In the past prefix_to_hash was the default and externals were not dropped, so prefixes
|
# In the past prefix_to_hash was the default and externals were not dropped, so prefixes
|
||||||
# were not unique.
|
# were not unique.
|
||||||
@@ -2230,7 +2220,7 @@ def relocate_package(spec):
|
|||||||
# An analog in this algorithm is any spec that shares a name or provides the same virtuals
|
# An analog in this algorithm is any spec that shares a name or provides the same virtuals
|
||||||
# in the context of the relevant root spec. This ensures that the analog for a spec s
|
# in the context of the relevant root spec. This ensures that the analog for a spec s
|
||||||
# is the spec that s replaced when we spliced.
|
# is the spec that s replaced when we spliced.
|
||||||
relocation_specs = deps_to_relocate(spec)
|
relocation_specs = specs_to_relocate(spec)
|
||||||
build_spec_ids = set(id(s) for s in spec.build_spec.traverse(deptype=dt.ALL & ~dt.BUILD))
|
build_spec_ids = set(id(s) for s in spec.build_spec.traverse(deptype=dt.ALL & ~dt.BUILD))
|
||||||
for s in relocation_specs:
|
for s in relocation_specs:
|
||||||
analog = s
|
analog = s
|
||||||
@@ -2268,19 +2258,11 @@ def relocate_package(spec):
|
|||||||
|
|
||||||
tty.debug("Relocating package from", "%s to %s." % (old_layout_root, new_layout_root))
|
tty.debug("Relocating package from", "%s to %s." % (old_layout_root, new_layout_root))
|
||||||
|
|
||||||
# Old archives maybe have hardlinks repeated.
|
# Old archives may have hardlinks repeated.
|
||||||
dedupe_hardlinks_if_necessary(workdir, buildinfo)
|
dedupe_hardlinks_if_necessary(workdir, buildinfo)
|
||||||
|
|
||||||
def is_backup_file(file):
|
|
||||||
return file.endswith("~")
|
|
||||||
|
|
||||||
# Text files containing the prefix text
|
# Text files containing the prefix text
|
||||||
text_names = list()
|
text_names = [os.path.join(workdir, f) for f in buildinfo["relocate_textfiles"]]
|
||||||
for filename in buildinfo["relocate_textfiles"]:
|
|
||||||
text_name = os.path.join(workdir, filename)
|
|
||||||
# Don't add backup files generated by filter_file during install step.
|
|
||||||
if not is_backup_file(text_name):
|
|
||||||
text_names.append(text_name)
|
|
||||||
|
|
||||||
# If we are not installing back to the same install tree do the relocation
|
# If we are not installing back to the same install tree do the relocation
|
||||||
if old_prefix != new_prefix:
|
if old_prefix != new_prefix:
|
||||||
@@ -2291,29 +2273,11 @@ def is_backup_file(file):
|
|||||||
# do the relocation of path in binaries
|
# do the relocation of path in binaries
|
||||||
platform = spack.platforms.by_name(spec.platform)
|
platform = spack.platforms.by_name(spec.platform)
|
||||||
if "macho" in platform.binary_formats:
|
if "macho" in platform.binary_formats:
|
||||||
relocate.relocate_macho_binaries(
|
relocate.relocate_macho_binaries(files_to_relocate, prefix_to_prefix_bin)
|
||||||
files_to_relocate,
|
elif "elf" in platform.binary_formats:
|
||||||
old_layout_root,
|
|
||||||
new_layout_root,
|
|
||||||
prefix_to_prefix_bin,
|
|
||||||
rel,
|
|
||||||
old_prefix,
|
|
||||||
new_prefix,
|
|
||||||
)
|
|
||||||
elif "elf" in platform.binary_formats and not rel:
|
|
||||||
# The new ELF dynamic section relocation logic only handles absolute to
|
# The new ELF dynamic section relocation logic only handles absolute to
|
||||||
# absolute relocation.
|
# absolute relocation.
|
||||||
relocate.new_relocate_elf_binaries(files_to_relocate, prefix_to_prefix_bin)
|
relocate.relocate_elf_binaries(files_to_relocate, prefix_to_prefix_bin)
|
||||||
elif "elf" in platform.binary_formats and rel:
|
|
||||||
relocate.relocate_elf_binaries(
|
|
||||||
files_to_relocate,
|
|
||||||
old_layout_root,
|
|
||||||
new_layout_root,
|
|
||||||
prefix_to_prefix_bin,
|
|
||||||
rel,
|
|
||||||
old_prefix,
|
|
||||||
new_prefix,
|
|
||||||
)
|
|
||||||
|
|
||||||
# Relocate links to the new install prefix
|
# Relocate links to the new install prefix
|
||||||
links = [os.path.join(workdir, f) for f in buildinfo.get("relocate_links", [])]
|
links = [os.path.join(workdir, f) for f in buildinfo.get("relocate_links", [])]
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
"""Function and classes needed to bootstrap Spack itself."""
|
"""Function and classes needed to bootstrap Spack itself."""
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
"""Common basic functions used through the spack.bootstrap package"""
|
"""Common basic functions used through the spack.bootstrap package"""
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
"""Bootstrap concrete specs for clingo
|
"""Bootstrap concrete specs for clingo
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
"""Manage configuration swapping for bootstrapping purposes"""
|
"""Manage configuration swapping for bootstrapping purposes"""
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
"""Bootstrap Spack core dependencies from binaries.
|
"""Bootstrap Spack core dependencies from binaries.
|
||||||
@@ -549,10 +548,9 @@ def ensure_winsdk_external_or_raise() -> None:
|
|||||||
missing_packages_lst.append("win-sdk")
|
missing_packages_lst.append("win-sdk")
|
||||||
missing_packages = " & ".join(missing_packages_lst)
|
missing_packages = " & ".join(missing_packages_lst)
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
f"Unable to find the {missing_packages}, please install these packages \
|
f"Unable to find the {missing_packages}, please install these packages via the Visual "
|
||||||
via the Visual Studio installer \
|
"Studio installer before proceeding with Spack or provide the path to a non standard "
|
||||||
before proceeding with Spack or provide the path to a non standard install with \
|
"install with 'spack external find --path'"
|
||||||
'spack external find --path'"
|
|
||||||
)
|
)
|
||||||
# wgl/sdk are not required for bootstrapping Spack, but
|
# wgl/sdk are not required for bootstrapping Spack, but
|
||||||
# are required for building anything non trivial
|
# are required for building anything non trivial
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
"""Bootstrap non-core Spack dependencies from an environment."""
|
"""Bootstrap non-core Spack dependencies from an environment."""
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
"""Query the status of bootstrapping on this machine"""
|
"""Query the status of bootstrapping on this machine"""
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
@@ -924,7 +923,9 @@ def effective_deptypes(
|
|||||||
in reverse so that dependents override dependencies, not the other way around."""
|
in reverse so that dependents override dependencies, not the other way around."""
|
||||||
topo_sorted_edges = traverse.traverse_topo_edges_generator(
|
topo_sorted_edges = traverse.traverse_topo_edges_generator(
|
||||||
traverse.with_artificial_edges(specs),
|
traverse.with_artificial_edges(specs),
|
||||||
visitor=EnvironmentVisitor(*specs, context=context),
|
visitor=traverse.CoverEdgesVisitor(
|
||||||
|
EnvironmentVisitor(*specs, context=context), key=traverse.by_dag_hash
|
||||||
|
),
|
||||||
key=traverse.by_dag_hash,
|
key=traverse.by_dag_hash,
|
||||||
root=True,
|
root=True,
|
||||||
all_edges=True,
|
all_edges=True,
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
import os
|
import os
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user