[issue2200] find_executable fails to find .bat files on win32

2021-02-03 Thread Steve Dower


Steve Dower  added the comment:

Distutils is now deprecated (see PEP 632) and all tagged issues are being 
closed. From now until removal, only release blocking issues will be considered 
for distutils.

If this issue does not relate to distutils, please remove the component and 
reopen it. If you believe it still requires a fix, most likely the issue should 
be re-reported at https://github.com/pypa/setuptools

--
nosy: +steve.dower
resolution: accepted -> out of date
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2014-08-10 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
components:  -Distutils2
nosy: +dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.1, Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2014-02-03 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
nosy:  -BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2011-03-20 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Martin, could you please review patch file11359?

--
nosy: +loewis
versions: +Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2011-03-20 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I think the patch is incorrect. Parsing PATHEXT means that it will believe that 
all extensions listed on PATHEXT are executable. However, os.spawnv is not able 
to run them all, but only a subset. IIUC, spawnv supports (from spawnve.c)

static _TSCHAR *ext_strings[] = { _T(.cmd), _T(.bat), _T(.exe), 
_T(.com) };

PATHEXT typically includes also .js and other extensions which cannot be run 
through spawnv.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2011-02-13 Thread Alexis Metaireau

Alexis Metaireau ale...@notmyidea.org added the comment:

Have the patch been applied ? (the state is still open since last message)

--
nosy: +alexis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2011-02-13 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Not yet.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2010-09-29 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
versions: +3rd party

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2010-09-21 Thread Lev Shamardin

Lev Shamardin shamar...@gmail.com added the comment:

My use case was compiling PyQt4 resources and Qt Designer .ui files from setup 
script using pyrcc4 and pyuic4 commands. On windows pyrcc4 is actually a 
pyrcc4.bat file (at least it was at the time of the original bug submission - 
haven't checked current status), and find_exe could not find it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2010-09-21 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

I believe I had problems with SCons and other .py scripts that are installed as 
executable .bat files on Windows.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2010-09-21 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

Another use case for .bat files is adddin extra params for executable files.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2010-09-21 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thanks for the use cases.  I agree this is a bug, not a feature, so unless 
Tarek disagrees I will commit the last patch.

I'm not sure this requires tests.

--
assignee: tarek - eric.araujo
resolution:  - accepted
stage:  - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2010-09-20 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

I think distutils changes should be aimed at several versions, please correct 
them if I'm wrong.

--
nosy: +BreamoreBoy, eric.araujo
versions: +Python 2.5, Python 2.6, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2010-09-20 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

distutils bugs follow standard Python rules: They are fixed in stable and 
development branches, now 2.7, 3.1 and py3k.  If there is a security hazard, 
the fix would go into 2.6 and possibly 2.5 too.

distutils2 has to work with 2.4-2.7 and (soon) 3.1-3.2, so Tarek told me to set 
all available versions for those bugs (2.5-py3k), even if I think “3rd party” 
is more appropriate and useful (since a distutils2 bug would not for example 
block a CPython 3.2 release).

When a bug applies to distutils and distutils2, I prefer to set only versions 
relevant for distutils.  distutils2 has only one branch which is tested with 
all supported Python version, and I actually consider distutils2 a version of 
distutils: It makes more sense to me to think “this bug exists in CPython 3.1, 
3.2 and distutils2”.

--
components: +Distutils2
versions:  -Python 2.5, Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2010-09-20 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Could someone provide use cases for this change?  What programs which were not 
.exe did you need to run though distutils?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2010-08-03 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5, Python 2.6, Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2009-02-28 Thread Akira Kitada

Changes by Akira Kitada akit...@gmail.com:


--
assignee:  - tarek
components: +Windows
nosy: +tarek

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2008-09-03 Thread anatoly techtonik

anatoly techtonik [EMAIL PROTECTED] added the comment:

I've run into the same problem.

Attached patch (updated with Lev code) is almost the same except that it
doesn't attempt to return executable files without executable extension.

It also accounts that os2 executables can have arbitrary extensions
according to Perl manual.
http://www.perl.com/doc/manual/html/Porting/README.os2.html#Starting_OS_2_and_DOS_programs

--
nosy: +techtonik
versions: +Python 2.6, Python 2.7, Python 3.0
Added file: http://bugs.python.org/file11358/spawn.patch.txt

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2008-09-03 Thread anatoly techtonik

Changes by anatoly techtonik [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file11358/spawn.patch.txt

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2008-09-03 Thread anatoly techtonik

Changes by anatoly techtonik [EMAIL PROTECTED]:


Added file: http://bugs.python.org/file11359/spawn.patch.txt

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2008-03-03 Thread Lev Shamardin

Lev Shamardin added the comment:

I can't see this issue on the 'open issues' list nor in the search
results. Is something wrong?

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2200
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2008-03-02 Thread Lev Shamardin

Lev Shamardin added the comment:

Here is my vision of this patch. I don't think that it is necessary to
fall back to 'com/exe/bat' if PATHEXT is not set, since it must be set
on any correctly configured Win32 platform.

--
keywords: +patch
Added file: http://bugs.python.org/file9584/spawn.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2200
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2008-03-01 Thread Christian Heimes

Christian Heimes added the comment:

Can you provide a patch which uses PATHEXT and falls back to .com, .exe
and .bat?

--
nosy: +tiran
priority:  - normal

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2200
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2200] find_executable fails to find .bat files on win32

2008-02-28 Thread Lev Shamardin

New submission from Lev Shamardin:

distutils.spawn.find_executable appends '.exe' suffix on win32 and os2
platforms. This is incorrect behavior, since it prevents finding .bat,
.cmd and other similar files. Ether all extensions from the %PATHEXT%
must be checked or filenames both with appended suffix and without
appending suffix must be checked.

--
components: Distutils
messages: 63092
nosy: abbot
severity: major
status: open
title: find_executable fails to find .bat files on win32
type: behavior
versions: Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2200
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com