Re: Python program as a command-line program (was: Python package providing both modules and an app)

2016-06-24 Thread Barry Warsaw
On Jun 23, 2016, at 11:17 AM, Ben Finney wrote: >There isn't, AFAIK, anything portable that I can write in the shebang to >turn a command invocation of ‘./foo/bar.py’ into ‘python3 -m foo.bar’. Why not just have a file that contains only? exec python3 -m foo.bar Cheers, -Barry

Re: Best practice for adding python3 version to existing module with helper programs?

2016-06-24 Thread Barry Warsaw
On Jun 24, 2016, at 03:30 PM, Ben Finney wrote: >Neil Muller writes: > >> I'm working on packaging the latest version of sqlobject, which adds >> supprt for python 3, and I'm unsure of how best to handle the helper >> applications that ship as part of the package.