japj / ryppi

python version of http://github.com/isaacs/ryp
37 stars 7 forks source link

handle 'bin' section #9

Open japj opened 13 years ago

japj commented 13 years ago

http://npmjs.org/doc/json.html#bin

idea could be to generate a .bat file related to the actual command to be executed (including "node.exe")

this is usefull for modules that include 'executables' to be run

rjduwors commented 13 years ago

I have given up on npm for now. I don't want to play with Unbutu. I have a VM kicking around but it would not even install Chrome properly and I don't feel like getting lost in another OS when I am looking for ways to do network programming that are OS independent. If Node can't do that, node isn't worth the trouble. But for now the problem seems to be npm. I have used ryppi successfully and patched up the few binary links when they appear in package.json. (And the odd build such as node-proxy). Ugly but so far funtional. Quick question why doesn't ryppi do the symbolic links?

japj commented 13 years ago

well, ryppi started as a python version of http://github.com/isaacs/ryp, which just handles fetching and extracting npm packages (including dependencies). as such it was and is never intended to be a 'full' replacement for npm. so far nobody had the need for the symlinking/bin handling.

kajala commented 13 years ago

Not related to the bin-section but just thought to steal this thread for quick thanks, I've just spend better half of the day fighting with npm, and this one worked out of the box.

japj commented 13 years ago

we can probably use something like the https://github.com/isaacs/npm/blob/master/lib/utils/cmd-shim.js to implement this in python, and then install it at node_modules.bin)