[issue4015] [patch] make installed scripts executable on windows

2010-05-28 Thread anatoly techtonik
anatoly techtonik added the comment: This issue is so old and I do not have time to reread it fully, unfortunately. I believe I wanted to install packages using "easy_install", "pip" or whatever I have and get Scripts/something.bat for my version of Python. This version is often portable, so

[issue4015] [patch] make installed scripts executable on windows

2010-05-28 Thread Éric Araujo
Éric Araujo added the comment: Related to #870479 (should we make that one a meta-bug?) -- nosy: +merwok ___ Python tracker ___ ___ Py

[issue4015] [patch] make installed scripts executable on windows

2010-05-28 Thread Per
Per added the comment: On POSIX the interpreter will be read from the first line of a file. On Windows the interpreter will be read from the Registry HKEY_CLASSES_ROOT\. . So the correct way to associate a interpreter to a file is to invent a file-extension for every interpreter. Like /usr/bi

[issue4015] [patch] make installed scripts executable on windows

2009-08-14 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue4015] [patch] make installed scripts executable on windows

2009-08-13 Thread sorin
sorin added the comment: I totally agree that we must create batch files for commands but not by including python code inside them. -- nosy: +sorin ___ Python tracker ___ ___

[issue4015] [patch] make installed scripts executable on windows

2009-04-04 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- priority: -> normal type: -> feature request versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker ___ ___

[issue4015] [patch] make installed scripts executable on windows

2009-04-02 Thread anatoly techtonik
anatoly techtonik added the comment: I've updated the script to parse unlimited number of parameters on NT, to return %errorcode% and to fallback to default Python compiler. It is based on similar workarounds we've made for SCons in http://scons.tigris.org/source/browse/scons/branches/core/src/

[issue4015] [patch] make installed scripts executable on windows

2009-04-02 Thread anatoly techtonik
Changes by anatoly techtonik : Added file: http://bugs.python.org/file13577/executable.scripts.on.nt.patch ___ Python tracker ___ ___ Python-bu

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread anatoly techtonik
anatoly techtonik added the comment: The solution with launcher is complex (if not complicated). It will make scripts unportable - consider using a removable disk with your Python and application script. The interpreter was not installed on target system, but with .bat file application is still

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: Maybe also let's look on setuptools solution.It can make windows executable for 'entry point scripts'. Also there are family scripts for single entry point: * easy_install.exe * easy_install-2.5.exe * easy_install-2.5-script.py * easy_install-script.py I like

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I agree. In any case, double-clicking on a .py file should start an "installed" interpreter, that is one listed in the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\X.Y\InstallPath Today starting a .py file only open the last installed Python in

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Mark Hammond
Mark Hammond added the comment: > It could also point to a "python launcher", which reads the first line What would that first line look like on Windows? o:\src\python-2.6-svn\PCBuild\python.exe would be appropriate for my machine, but I wouldn't really be happy with installed scripts embeddin

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > on Windows the "mime types", .py, .pyw point to a > specific version of Python. It could also point to a "python launcher", which reads the first line of the file and starts the corresponding version of the interpreter. Visual Studio does this for .sln

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Jean-Michel Fauth
Jean-Michel Fauth added the comment: It is true, that on Windows the "mime types", .py, .pyw point to a specific version of Python. Having Python 2.4, 2.5, 2.6, 3.0, 3.1 installed on my hd and applications using these (different) versions, I am *very glad* on that system, all versions, includin

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread anatoly techtonik
anatoly techtonik added the comment: The point is not in generating .bat files. The point is to make scripts executable with exactly the same version of Python the script was installed. It works well on POSIX, but doesn't work on windows at all. There is no other way to fix this on windows than

[issue4015] [patch] make installed scripts executable on windows

2009-03-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: optional .bat file generating - probably not bad idea. But I definitely don't want to see this issue as default. Maybe just tool for generating bat files for desired packages based on package metadata for scripts can be solution? -- nosy: +asvetlov _

[issue4015] [patch] make installed scripts executable on windows

2009-03-18 Thread Benny Bach
Benny Bach added the comment: Ok - I see what you mean. I can't see any problems with it. However generating a separate bat file has the advantage that you can still invoke the original script by calling python explicitly. -- ___ Python tracker

[issue4015] [patch] make installed scripts executable on windows

2009-03-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: On posix platform, build_scripts already updates the #! line to refer to the target interpreter, and changes the file mode. On Windows, it could change the extension as well. Or does it causes problems? -- ___

[issue4015] [patch] make installed scripts executable on windows

2009-03-18 Thread Benny Bach
Benny Bach added the comment: If you have to name the script with a .bat extension it is not portable to other platforms or did I misunderstand something? The point of generating the bat file is to be able to use the same script on all platforms. -- ___

[issue4015] [patch] make installed scripts executable on windows

2009-03-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I sometimes use this trick on Windows: name the script with a .bat extension, and put these lines on top of the file: @echo off rem = """ rem run python on this bat file. rem The -x causes python to skip the first line of the file: c:\path\to\python -x %

[issue4015] [patch] make installed scripts executable on windows

2009-03-15 Thread Benny Bach
Benny Bach added the comment: I think this should be the default. I am a rookie in python, setup.py in particular, but I cannot see how you can write portable setup scripts without this. I agree that the batch script can be improved. Here is how ruby gems do it: @ECHO OFF IF NOT "%~f0" == "~f0

[issue4015] [patch] make installed scripts executable on windows

2009-02-05 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue4015] [patch] make installed scripts executable on windows

2008-10-24 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: I can see how this might be useful, but I agree it should not happen by default, at least until it has been out for a while and feedback is clear that people do want it by default. I'd also like to find a way to pass all args, not just the firs

[issue4015] [patch] make installed scripts executable on windows

2008-10-16 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: The same issue in "Roundup Tracker" bugtracker http://sourceforge.net/tracker2/index.php?func=detail&aid=1163804&group_id=31577&atid=402788 ___ Python tracker <[EMAIL PROTECTED]>

[issue4015] [patch] make installed scripts executable on windows

2008-10-04 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: 1. Associations still do not show Scripts/ among executable files in Run dialog. 2. Association works only for one version of properly installed Python. It won't work if Python is installed for different user, if extensions are not registe

[issue4015] [patch] make installed scripts executable on windows

2008-10-03 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: As a Windows user, I am not sure I would want this. A run command associated with .py makes all .py files executable. From a command prompt, which I suspect most Windows users never use, typing 'python' is not a big deal. Adding .bat files

[issue4015] [patch] make installed scripts executable on windows

2008-10-02 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: Distutils contains code to make scripts executable on posix platform. Here is a patch to for the same feature for nt. It adds .bat file for every script that doesn't have executable launcher. -- components: Distutils files: creat