[issue5043] get_msvcr() returns None rather than []

2022-03-04 Thread Alex Zunegin
Alex Zunegin added the comment: This messes up building Cython extensions on MSYS2 and MINGW. Still here as of setuptools 60. There is no line ``` return [] - ``` at the end. Adding it helps. -- nosy: +gesserat ___ Python

[issue5043] get_msvcr() returns None rather than []

2020-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: The claimed bug is that when msc_pos is -1 in the code as posted, 'return []' should be executed, but None is returned instead. When I add 'msc_pos = -1 before the if statement, and call the function, after adding the needed sys import, [] is indeed

[issue5043] get_msvcr() returns None rather than []

2011-06-01 Thread Ralf Schmitt
Changes by Ralf Schmitt sch...@gmail.com: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5043 ___ ___ Python-bugs-list mailing

[issue5043] get_msvcr() returns None rather than []

2011-05-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for explaining. a) NoneType object is not iterable. If the function don't return empty list later distutil will fail Possible fix: self.dll_libraries = get_msvcr() or [] method for detection of a msvc runtime is not correct. If the

[issue5043] get_msvcr() returns None rather than []

2010-11-28 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: a) NoneType object is not iterable. If the function don't return empty list later distutil will fail on the lines like libraries.extend(self.dll_libraries) b) method for detection of a msvc runtime is not correct. If the method

[issue5043] get_msvcr() returns None rather than []

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can you explain what the bug is? Thanks in advance. -- assignee: - eric.araujo components: +Distutils, Distutils2 -Build nosy: +eric.araujo versions: +3rd party, Python 3.1, Python 3.2 ___ Python

[issue5043] get_msvcr() returns None rather than []

2010-11-27 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton l...@lkcl.net added the comment: i'm really sorry, eric, but the decision to ban me from interacting with python developers for 18 months+ has left me with zero working knowledge of many of these complex issues which i was heavily and actively involved in at the

[issue5043] get_msvcr() returns None rather than []

2009-01-24 Thread Luke Kenneth Casson Leighton
New submission from Luke Kenneth Casson Leighton l...@lkcl.net: def get_msvcr(): Include the appropriate MSVC runtime library if Python was built with MSVC 7.0 or later. msc_pos = sys.version.find('MSC v.') if msc_pos != -1: msc_ver =

[issue5043] get_msvcr() returns None rather than []

2009-01-24 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: My comment on this part of code is( from issue3871): +# FIXME: next code is from issue870382 +# MS C-runtime libraries never support backward compatibility. +# Linking to a different library without to specify correct