Skip to content

Commit 69624ba

Browse files
committed
Try modified build env configuration
Signed-off-by: tldahlgren <dahlgren1@llnl.gov>
1 parent 43e86f6 commit 69624ba

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

outputs/packaging.sh

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,21 @@ example --expect-error packaging/install-mpileaks-2 "spack install tutorial-mpi
4141
stage_dir="$(spack location -s tutorial-mpileaks)"
4242
example packaging/build-output "cat $stage_dir/spack-build-out.txt"
4343

44-
run_configure() (
45-
prefix=$(spack python -c \
46-
'import spack.concretize; print(spack.concretize.concretize_one("tutorial-mpileaks").prefix)')
47-
spack cd tutorial-mpileaks
48-
spack build-env tutorial-mpileaks bash
49-
example --expect-error $PROJECT/packaging/build-env-configure "./configure --prefix=$prefix"
50-
cd $PROJECT
51-
)
52-
run_configure
44+
prefix=$(spack python -c \
45+
'import spack.concretize; print(spack.concretize.concretize_one("tutorial-mpileaks").prefix)')
46+
spack cd tutorial-mpileaks
47+
echo "configure --prefix=$prefix" | example packaging/build-env-configure "spack build-env tutorial-mpileaks -- bash"
48+
# Unfortunately cannot use a function since it appears to cause excessive delays
49+
# in output regeneration.
50+
#run_configure() (
51+
# prefix=$(spack python -c \
52+
# 'import spack.concretize; print(spack.concretize.concretize_one("tutorial-mpileaks").prefix)')
53+
# spack cd tutorial-mpileaks
54+
# spack build-env tutorial-mpileaks bash
55+
# example --expect-error $PROJECT/packaging/build-env-configure "./configure --prefix=$prefix"
56+
# cd $PROJECT
57+
#)
58+
#run_configure
5359

5460
cp "$PROJECT/package-py-files/3.package.py" "$mpileaks_package_py"
5561
example packaging/install-mpileaks-3 "spack install tutorial-mpileaks"

0 commit comments

Comments
 (0)