Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init-Config IDs #316

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/devtools/tpl-manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ def parse_args():
parser.add_argument('--skip-init', action='store_true',
help='Skip setting up and configuring Spack.')

parser.add_argument('--id', type=str, default="",
help='ID string to postfix on initconfig file.')

return parser.parse_args()

# Parse the json formatted spec list...
Expand Down Expand Up @@ -173,6 +176,9 @@ def build_deps(args):
# Install only the dependencies for Spheral and create CMake configure file
if "Error: " in sexe("{0} dev-build -q --fresh -u initconfig {1}@develop%{2} 2>&1 | tee -a \"tpl-build-{2}-out.txt\"".format(spack_cmd, package_name, s), ret_output=True): sys.exit(1)

if args.id:
sexe("file=$(ls -t *.cmake | head -n 1); mv \"$file\" \"${file%.cmake}-"+args.id+".cmake\"")

if not args.no_clean:
sexe("rm -f spec-info-* tpl-build-* spack-build-* spack-configure-args.txt")

Expand Down
Loading