Update remaining packages to use Stage.source_path (#11662)
#11528 updated Stage to always store a Package's source in a fixed directory accessible via `Stage.source_path` This left behind a number of packages which were expecting to access the source code via `Stage.path`. This Updates those packages to use `Stage.source_path` instead. This also updates the name of the fixed directory: The original name of the fixed directory was "src", so if an expanded archive created a "src" directory, then users inspecting the directory structure could see paths like "src/src" (which wasn't wrong but could be confusing). Therefore this also updates the name of the fixed directory to "spack-src".
This commit is contained in:

committed by
Peter Scheibel

parent
3ce90741a3
commit
16530f84be
@@ -28,7 +28,7 @@
|
||||
from spack.util.path import canonicalize_path
|
||||
from spack.util.crypto import prefix_bits, bit_length
|
||||
|
||||
_source_path_subdir = 'src'
|
||||
_source_path_subdir = 'spack-src'
|
||||
_stage_prefix = 'spack-stage-'
|
||||
|
||||
|
||||
|
@@ -48,7 +48,7 @@
|
||||
# to have the following structure:
|
||||
#
|
||||
# TMPDIR/ temp stage dir
|
||||
# src/ well-known stage source directory
|
||||
# spack-src/ well-known stage source directory
|
||||
# _readme_fn Optional test_readme (contains _readme_contents)
|
||||
# _hidden_fn Optional hidden file (contains _hidden_contents)
|
||||
# _archive_fn archive_url = file:///path/to/_archive_fn
|
||||
@@ -56,7 +56,7 @@
|
||||
# while exploding tarball directories are expected to be structured as follows:
|
||||
#
|
||||
# TMPDIR/ temp stage dir
|
||||
# src/ well-known stage source directory
|
||||
# spack-src/ well-known stage source directory
|
||||
# archive_name/ archive dir
|
||||
# _readme_fn test_readme (contains _readme_contents)
|
||||
# _extra_fn test_extra file (contains _extra_contents)
|
||||
|
Reference in New Issue
Block a user