Running latest 32-bit Python on 64-bit system
Hello, I have a problem with using the (otherwise nice) Python launcher. How can I get it to run the highest 32-bit Python on my 64-bit system? This is on Windows, but I think it applies to other OSes as well. My application runs (unmodified) with Python 3.[345], but only with the 32-bit version because it loads a DLL that has no 64-bit version available. I would like to run it on any system that has *any* suitable Python installed. However, with the shebang syntax supported by the launcher, I can only demand a 32-bit version if I also specify the Python minor version I want, and I don't necessarily know that in advance. I can code around that, of course, but I don't want to. If Python can select the 64-bit version to run by itself, it should also be able to for the 32-bit version, right? Thanks, -- Christian -- https://mail.python.org/mailman/listinfo/python-list
Re: Running latest 32-bit Python on 64-bit system
* Zachary Ware wrote: On Fri, Nov 13, 2015 at 4:52 AM, Christian Ullrich wrote: However, with the shebang syntax supported by the launcher, I can only demand a 32-bit version if I also specify the Python minor version I want, and I don't necessarily know that in advance. I can code around that, of course, but I don't want to. If Python can select the 64-bit version to run by itself, it should also be able to for the 32-bit version, right? I don't think there's currently a way to do what you want, but it seems like a reasonable thing to do. Would you mind raising an enhancement request on bugs.python.org? <https://bugs.python.org/issue25636>. Crossing my fingers ... About the closest you could come currently would be to specify the full path to the interpreter, but of course that may vary by machine. And it would include the version number in either the path (Windows) or the file name (elsewhere) again, rather defeating the purpose. Thanks for your help, -- Christian -- https://mail.python.org/mailman/listinfo/python-list
Re: Launcher, and ftype Python.File
* Terry Reedy wrote: On 11/18/2015 3:12 AM, Glenn Linderman wrote: d:\>ftype Python.File Python.File="C:\Windows\py.exe" "%L" %* Verified on my Win 10 I'm surprised by the "%L" where usually programs have "%1". Is this a new Windows feature I don't know about yet, or is it a bug in the installer for the Launcher? It puzzles me tool. However, it works. Apparently %L is always the long file name, and %1 is the short name unless the shell can prove that the executable can handle long names. Google doesn't support searching for "%L" very well. https://www.google.com/search?q=ftype+%22%25L%22#q=ftype+%22%25L%22+-mks -- Christian -- https://mail.python.org/mailman/listinfo/python-list