Re:Escaping from Anaconda's Stranglehold on macOS
by jampekka on Monday September 02, 2024 @07:24AM
(#41424447)
It looks up from script.js'd directory or the earliest parent with node_modules. Not CWD. A lot like "import somemodule" in script.py tries to import somemodule.py file from the directory script.py is in.
Traversing to the parent is especially nice for scripts. In python having scripts outside the module directory is quite painful.
Gyp is a lot easier than Python setup.py. The "easy" Java packages are comparable to pure Python/pure JS packages. With e.g. C bindings JNI/Java packaging is a horrid pain.
Actually building Python packages is pretty complex, but that's the case for JS too. Java avoids this by distributing compiled libraries.