Running entrypoints/executables in the bin directory has been solved by the 
node community with npx (https://www.npmjs.com/package/npx):

> Executes <command> either from a local node_modules/.bin, or from a central 
> cache, installing any packages needed in order for <command> to run.

I built similuar support into pipx as well, so `pipx run ENTRYPOINT` will 
search the appropriate `__pypackages__` path for the bin dir and the 
entrypoint. This is not the only way to solve it, but it seems to be working 
for the node. 

Indeed, massively popular projects like `create-react-app` 
(https://github.com/facebook/create-react-app#quick-overview) include npx as 
their sole installation instructions.
--
Distutils-SIG mailing list -- distutils-sig@python.org
To unsubscribe send an email to distutils-sig-le...@python.org
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at 
https://mail.python.org/archives/list/distutils-sig@python.org/message/NAXGS7PZ7TELPEW2ZNNHW7N3RQDCPZSN/

Reply via email to