question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatic handling of `SPACK_ROOT`?

See original GitHub issue

The Spack build system implicitly requires the SPACK_ROOT environment variable to be defined, but this requirement isn’t written down explicitly, besides the fact the variable is now mentioned in the new Spack tutorial.

The problem I’m facing is that SPACK_ROOT may be defined in the login node but not in the compute node. The workaround I’m using is to have in the tests

    variables = {
        # ...
        'SPACK_ROOT': os.getenv('SPACK_ROOT'),
    }

I guess I may not the be only one in this situation. Should there be a more automatic handling of SPACK_ROOT (maybe automatise what I’m manually doing in the tests)?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
vkarakcommented, Aug 9, 2021

If you assume spack will be in PATH just run spack location --spack-root.

Yes, we do. So that’s perfect!

2reactions
tgamblincommented, Aug 9, 2021

If you assume spack will be in PATH just run spack location --spack-root.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Home - Automatic Handling Intl.
Automatic Handling manufactures custom roll handling equipment for the pulp & paper, tissue & towel, converting and nonwovens industries.
Read more >
Products - Automatic Handling Intl.
From automated systems to material handling equipment, Automatic Handling manufactures solutions that are designed for safety and reliability.
Read more >
Contact Us - Automatic Handling Intl.
Prefer to give us a call? Here's a list of people to start with.​. Systems Sales & New Customers. Andy Pienta. Sales Director,...
Read more >
Industries We Automate - Automatic Handling Intl.
Automatic Handling custom designs automated roll handling solutions for the pulp & paper, tissue & towel, converting, nonwovens industries.
Read more >
Our Team - Automatic Handling Intl.
The Automatic Handling team has over 250+ combined years of experience developing automated roll handling systems for a variety of industries.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found