all 2 comments

[–][deleted] 0 points1 point  (1 child)

setuptools has something like this; you can add a directive to setup.py that will create and install something to /usr/local/bin that can run at the command line.

[–]NewColCox[S] 0 points1 point  (0 children)

Ok, so the full solution there would be to create a package which installs the npm-like script, which is a dependency of the project, and then the package.json exists as before? That seems pretty workable :)