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.
-
@ilg-ul, have you considered a system where, on Windows, instead of three shell script files (
.cmd
,.sh
and.ps1
), there is a single precompiled.exe
stub that can be configured at runtime via a separate text file what to launch:with
python.command
containingbin\python.exe
the directory to be resolved throughxpm
bypython.exe
which will simply do anexecvp
call to replace itself?The
.exe
is precompiled to avoid requiring a compilation step. This is the system used bypip
itself. It carries a number of precompiled.exe
-x64
,i32
, 'arm64`...Yours is the
npm
system, which chokescmake
.Beta Was this translation helpful? Give feedback.
All reactions