-
Notifications
You must be signed in to change notification settings - Fork 119
feat: add support for portable/standalone modules installation for wi… #273
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
feat: add support for portable/standalone modules installation for wi… #273
Conversation
Codecov Report
@@ Coverage Diff @@
## master #273 +/- ##
==========================================
- Coverage 99.35% 98.66% -0.69%
==========================================
Files 2 2
Lines 2932 2471 -461
==========================================
- Hits 2913 2438 -475
- Misses 19 33 +14
Continue to review full report at Codecov.
|
xdelaruelle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good idea. I would suggest to also define the MODULES_CMD variable and make it contains the fully qualified path of modulecmd.tcl, then update the module.cmd to rely on this variable to call the modulecmd.tcl script.
ac5cec7 to
d34240c
Compare
Make mb, mlprof, mtreview and playdemo use `/usr/bin/env tclsh` shebang rather applying there TCLSH location defined by `./configure` process.
Update moduleinit.cmd file to set Modules-specific environment variables according to the script directory and the file existence for: * MODULESHOME if not defined yet and if `..\libexec\modulecmd.tcl` exists * add `..\bin` directory to PATH if `module.cmd` is not available from PATH and available from `..\bin` * add `..\bin` directory to PATH if `tclsh.exe` is not available from PATH and available from `..\bin` Automatically call `moduleinit.cmd` from `module.cmd` if modules is not initialized yet (based on environment variables) Fixes envmodules#272
Provide new `--enable-windows-support` option for configure to automatically install windows batch file to bin directory during install step. This new option is not enabled by default.
Always define Modules-specific environment variables when running `cmd` initialization file.
Execute initialization script if MODULES_CMD environment variable is not found defined.
5b85789 to
17f1f50
Compare
…ndows platform
update moduleinit.cmd file to specific environment variables according to the script directory and the file existence for:
Closes #272