Re: [Python-Dev] Unable to build regex module against Python 3.5 32-bit
On 5 June 2015 at 02:28, MRAB wrote: > For reference, here's how I can build the regex module on Windows 8.1, > 64-bit, using only MinGW64. > > For Python 3.5, I can link against "python35.dll", but for earlier > versions, including Python 2.7, I need "libpython.a". > > I have built regex module for all of the 16 supported versions of > Python (2.5-2.7, 3.1-3.5, 64-bit and 32-bit) and they have all passed > the tests. > > > rem For Python 3.5, 64-bit. > rem Can link against the Python DLL. > > rem Compile > "C:\MinGW64\bin\gcc.exe" -mdll -m64 -DMS_WIN64 -O2 -Wall -Wsign-compare > -Wconversion -I"C:\Python35-64\include" -c > "D:\mrab-regex\source\_regex_unicode.c" -o > "D:\mrab-regex\release\3.5-64\_regex_unicode.o" > > "C:\MinGW64\bin\gcc.exe" -mdll -m64 -DMS_WIN64 -O2 -Wall -Wsign-compare > -Wconversion -I"C:\Python35-64\include" -c "D:\mrab-regex\source\_regex.c" > -o "D:\mrab-regex\release\3.5-64\_regex.o" > > rem Link > "C:\MinGW64\bin\gcc.exe" -m64 -shared -s > "D:\mrab-regex\release\3.5-64\_regex_unicode.o" > "D:\mrab-regex\release\3.5-64\_regex.o" -L"C:\Python35" -lpython35 -o > "D:\mrab-regex\release\3.5-64\_regex.pyd" [...] Note that even if we were to ship appropriate libpython.a libraries, this would always be a totally unsupported way of building Python extensions using mingw. If you want to build extensions, whether using mingw or otherwise, you should use distutils/setuptools. To use mingw, there's the --compiler=mingw switch that allows you to choose your compiler. There are a number of open issues around distutils with mingw which may mean that currently this approach doesn't work, but getting the mingw-using community to help with fixing those issues is the *only* way we'll ever get to a point where mingw is a supported toolchain for Python. I appreciate that "just getting it to work" is a powerful motivator here, but the plethora of different ways that people use for building extensions with mingw is *precisely* why mingw has failed to remain a supported toolchain. I'd be interested to know how well using setup.py --compiler=mingw works for your project, and why you chose to go with the manual process. (Just as an aside, setup.py works prerfectly for me when building the regex package with MSVC). Paul ___ Python-Dev mailing list [email protected] https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Mingw help
On Fri, Jun 5, 2015 at 2:24 AM, Steve Dower wrote: > If you have an interest in linking to the Windows builds of Python 2.7 and > 3.5+ using mingw, please visit http://bugs.python.org/issue24385 > > Unless someone can provide me with the One True Way to generate a lib that > will work for everyone, I'm going to replace the lib file with instructions > on how to generate it with your own tools. I've done enough guessing and > need someone who actually uses mingw to step up and help out. I use MinGW with SCons to build RHVoice and Wesnoth. I haven't seen a problem to use resulting .dll from ctypes, so as far as I know, if you're not using SEH, the resulting libraries should be compatible between MS tools and MinGW. Is that what are you asking? -- anatoly t. ___ Python-Dev mailing list [email protected] https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] Summary of Python tracker Issues
ACTIVITY SUMMARY (2015-05-29 - 2015-06-05) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open4853 ( +9) closed 31295 (+54) total 36148 (+63) Open issues with patches: 2225 Issues opened (30) == #23239: SSL match_hostname does not accept IP Address http://bugs.python.org/issue23239 reopened by christian.heimes #24325: Speedup types.coroutine() http://bugs.python.org/issue24325 opened by yselivanov #24329: __qualname__ and __slots__ http://bugs.python.org/issue24329 opened by yselivanov #24330: "Configure Idle" not in "Options" http://bugs.python.org/issue24330 opened by Yellow #24331: *** Error in `/usr/bin/python': double free or corruption (!pr http://bugs.python.org/issue24331 opened by krichter #24334: SSLSocket extra level of indirection http://bugs.python.org/issue24334 opened by christian.heimes #24336: Allow arbitrary keywords to @contextmanager functions http://bugs.python.org/issue24336 opened by vadmium #24337: Implement `http.client.HTTPMessage.__repr__` to make debugging http://bugs.python.org/issue24337 opened by cool-RR #24338: In argparse adding wrong arguments makes malformed namespace http://bugs.python.org/issue24338 opened by py.user #24339: iso6937 encoding missing http://bugs.python.org/issue24339 opened by John Helour #24340: co_stacksize estimate can be highly off http://bugs.python.org/issue24340 opened by arigo #24341: Test suite emits many DeprecationWarnings about sys.exc_clear( http://bugs.python.org/issue24341 opened by serhiy.storchaka #24343: Installing 3.4.3 gives error codes 2503 and 2502 on windows http://bugs.python.org/issue24343 opened by lac #24351: string.Template documentation incorrectly references "identifi http://bugs.python.org/issue24351 opened by july #24352: Provide a way for assertLogs to optionally not hide the loggin http://bugs.python.org/issue24352 opened by r.david.murray #24355: Provide a unittest api for controlling verbosity in tests http://bugs.python.org/issue24355 opened by r.david.murray #24356: venv documentation incorrect / misleading http://bugs.python.org/issue24356 opened by Graham.Oliver #24358: Should compression file-like objects provide .fileno(), mislea http://bugs.python.org/issue24358 opened by josh.r #24360: improve argparse.Namespace __repr__ for invalid identifiers. http://bugs.python.org/issue24360 opened by mbussonn #24362: Simplify the fast nodes resize logic in C OrderedDict. http://bugs.python.org/issue24362 opened by eric.snow #24363: httplib fails to handle semivalid HTTP headers http://bugs.python.org/issue24363 opened by mgdelmonte #24364: Not all defects pass through email policy http://bugs.python.org/issue24364 opened by r.david.murray #24370: OrderedDict behavior is unclear with misbehaving keys. http://bugs.python.org/issue24370 opened by eric.snow #24372: Documentation for ssl.wrap_socket's ssl_version parameter is o http://bugs.python.org/issue24372 opened by eric.smith #24379: slice.literal notation http://bugs.python.org/issue24379 opened by ll #24380: Got warning when compiling _scproxy.c on Mac http://bugs.python.org/issue24380 opened by vajrasky #24381: Got warning when compiling ffi.c on Mac http://bugs.python.org/issue24381 opened by vajrasky #24383: consider implementing __await__ on concurrent.futures.Future http://bugs.python.org/issue24383 opened by yselivanov #24384: difflib.SequenceMatcher faster quick_ratio with lower bound sp http://bugs.python.org/issue24384 opened by floyd #24385: libpython27.a in python-2.7.10 i386 (windows msi release) cont http://bugs.python.org/issue24385 opened by Jan Harkes Most recent 15 issues with no replies (15) == #24381: Got warning when compiling ffi.c on Mac http://bugs.python.org/issue24381 #24380: Got warning when compiling _scproxy.c on Mac http://bugs.python.org/issue24380 #24370: OrderedDict behavior is unclear with misbehaving keys. http://bugs.python.org/issue24370 #24364: Not all defects pass through email policy http://bugs.python.org/issue24364 #24352: Provide a way for assertLogs to optionally not hide the loggin http://bugs.python.org/issue24352 #24351: string.Template documentation incorrectly references "identifi http://bugs.python.org/issue24351 #24341: Test suite emits many DeprecationWarnings about sys.exc_clear( http://bugs.python.org/issue24341 #24340: co_stacksize estimate can be highly off http://bugs.python.org/issue24340 #24329: __qualname__ and __slots__ http://bugs.python.org/issue24329 #24324: Remove -Wunreachable-code flag http://bugs.python.org/issue24324 #24322: Hundreds of linker warnings on Windows http://bugs.python.org/issue24322 #24319: Crash during "make coverage-report" http://bugs.python.org/issue24319 #24307: pip error on windows whose current user
