default values for environment variables
See original GitHub issueHi,
Is there a way to default a variable in binding.gyp yet allow a different user externally set a different value.
https://github.com/HDF-NI/hdf5.node/blob/master/binding.gyp#L3 Some people have a hard coded path to native dependencies while others like a more app packaged deployment and/or the ability to have more than one version installed
"hdf5_home_linux": "/usr/local"
How to keep a default yet make it adaptable for other choices?
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
What Are the Default Environment Variables in Windows?
What are the default environment variables in Windows? · %ALLUSERSPROFILE% · %APPDATA% · %CommonProgramFiles% · %CommonProgramFiles(x86)% · % ...
Read more >Windows 10 default environment variables | Richard Buz
Windows 10 default environment variables ; %LOGONSERVER%, \\{domain_logon_server} \\MicrosoftAccount ; %NUMBER_OF_PROCESSORS%, 8 ; %OS%, Windows_NT ; %PATH%. C:\ ...
Read more >Assigning default values to shell variables with a single ...
To get the assigned value, or default if it's missing: FOO="${VARIABLE:-default}" # If variable not set or null, use default. # If VARIABLE...
Read more >Solved: Environment Variables: Default Value vs. Current V...
I understand why both ways work, as Environment Variables are only "data" in 2 tables after all. 1) Default Value = PROD: We...
Read more >Default environment variables - Release - ReleaseHub
Environment variables consist of a key, a value, and an optional secret flag. Mark an environment variable as secret using secret=true . Secrets...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For anyone coming here through a search engine, you can alternatively pass options through the GYP_DEFINES environment variable:
That should work with any node-gyp version.
Anybody know where’s the documentation for this? 🙄