I\'d like to make use of someone else\'s python utility, foobartools, whose native environment is linux. Foobartools is pure python so there\'s no reason it ca
I got to a working Scripts\foobar.exe, but it changes more of the code than I wish. I was hoping to get by with just a couple of tweaks to setup.py, or at least something that doesn't mess around inside upstream modules. I don't know it well enough to be sure I'm not getting in the way somehow.
(1) move bin/foobar
--> foobartools/foobar_cli.py
(2) In setup.py, comment out #scripts=...
and add:
entry_points = {
'console_scripts': ['foobar = foobartools.foobar_cli:main'],
}
[later] A refinement of the same core idea, means I keep my fat feet out of the main business area:
(1) move ./bin/foobar
--> ./foobar_cli/foobar.py
(note extension as well as folder change)
(2) add an empty __init__.py
to same folder
(3) console_scripts': ['foobar = foobar_cli.foorbar:main'],