Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The gui_scripts entry point should use "pythonw" #410

Open
ghost opened this issue Jul 12, 2015 · 2 comments
Open

The gui_scripts entry point should use "pythonw" #410

ghost opened this issue Jul 12, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 12, 2015

Originally reported by: Anonymous


There is a long tradition of python having a "pythonw", used to run scripts / programs that use the Windowing system.

On most *nix systems, pythonw is a no-op, aliased to the same executable.

On Windows, I've lost track, but I think it is different.

On the Mac, GUI programs need to be run from a properly defined application package. So there is a "python", and "pythonw". However, for years (and many versions) the python.org build of python has made pythonw aliased to python, so it's a non-issue there.

But the Anaconda build of python DOES have a distinct python and pythonw, and homebrew or macports may also.

So, unless pythonw has been officially deprecated, then setuptools should support it.

This will probably be as simple as changing the shebang line in the generated launch scripts to use "pythonw" for gui_script entry points.


@ghost
Copy link
Author

ghost commented Jul 16, 2015

Original comment by arfrever (Bitbucket: arfrever, GitHub: arfrever):


Build system of CPython does not install any "pythonw" on Unix non-Mac systems (e.g. GNU/Linux) (and on Mac systems when --disable-framework was passed to configure of CPython).

@ghost
Copy link
Author

ghost commented Feb 17, 2016

Original comment by chrishbarker (Bitbucket: chrishbarker, GitHub: Unknown):


If some systems don't have a pythonw (sigh -- they should, if it's just a link) then setuptools would need a bit of platform dependent code that puts in "pythonw" on OS-X (and maybe Windows) and regular old "python" on *nix. the scripts entry points are platform dependent already, this should not be a heavy lift.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants