Replies: 2 comments 2 replies
-
|
No, I did not consider alternate solutions, xpm is somehow an extension to npm, and it tries to use the same solutions. I agree that the npm system creates some additional problems when the tools are not invokes via shells (like cmake). But the idea is interesting, and I'll retain it. |
Beta Was this translation helpful? Give feedback.
-
|
I was thinking on this suggestion, and it seems feasible. For compatibility reasons, the existing The executable is the same binary for all tools, when started it gets its own name, computes the associated text file name, opens it and executes the command, probably with The generic executable is embedded into xpm, which, during the install command, copies it to .bin with the needed tool name and generates the associated command file. For simple cases when this mechanism is used to start another It is not clear how the command file should look like in case the tool is a script, like js/ts, python, etc, probably it should include the interpreter name and the absolute path to the script. Is this what you suggested? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@ilg-ul, have you considered a system where, on Windows, instead of three shell script files (
.cmd,.shand.ps1), there is a single precompiled.exestub that can be configured at runtime via a separate text file what to launch:with
python.commandcontainingbin\python.exethe directory to be resolved throughxpmbypython.exewhich will simply do anexecvpcall to replace itself?The
.exeis precompiled to avoid requiring a compilation step. This is the system used bypipitself. It carries a number of precompiled.exe-x64,i32, 'arm64`...Yours is the
npmsystem, which chokescmake.Beta Was this translation helpful? Give feedback.
All reactions