mirror of
https://github.com/google/brotli.git
synced 2026-09-22 06:35:52 +00:00
[PR #133] [MERGED] fix compilation on Windows Python 2.7 + support for MINGW32 and Cygwin #746
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/133
Author: @anthrotype
Created: 8/10/2015
Status: ✅ Merged
Merged: 8/11/2015
Merged by: @szabadka
Base:
master← Head:py27win📝 Commits (6)
f141729[brotlimodule.cc] fix RuntimeError on OS X: keyword list must be NULL terminatedc3540e2[setup.py] use MSVC 10.0 when compiling for Windows Python 2.754baf43[setup.py] support MINGW32 compiler: fix clashing 'hypot' definition; statically link libgcc and libstdc++ac33d35[brotlimodule.cc] add version string attribute to brotli module8c7edd3[bro.py] print --version as brotli.versiond2c8b27[setup.py] retrieve version string from brotlimodule.cc so we don't need to modify it more than once📊 Changes
3 files changed (+48 additions, -9 deletions)
View changed files
📝
python/bro.py(+1 -4)📝
python/brotlimodule.cc(+5 -1)📝
setup.py(+42 -4)📄 Description
This includes:
setup.pyto forcedistutilsuse MS Visual C++ 10.0, from Visual Studio 2010, instead of the default 9.0, Visual Studio 2008, when compiling for Windows Python 2.7. The latter does not support many of the modern C++ features required to compile the Brotli encoder. Windows Python version 3 and above are compiled with 2010 so they are ok.setup.pyto allow building Brotli with GCC for Windows, instead of the default Microsoft compiler. This can be done by passing the--compiler=mingw32option to setup.py.streams.ccto fix compilation under the Cygwin environment. Here GCC complains that 'malloc' and 'free' weren't declared in the current scope:🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.