Installing Bitarray In Python 2.6 On Windows
Solution 1:
MingW cannot compile the bitarray sources, I tried with version 3.4.5 and get the same errors. However, it compiles fine with the Microsoft compiler.
For your convenience I've build msi and exe installers for Python 2.6:
http://starship.python.net/crew/theller/bitarray-0.3.5.win32-py2.6.msi
http://starship.python.net/crew/theller/bitarray-0.3.5.win32-py2.6.exe
Please point the bitarray author to them so that he can upload them to pypi.
Solution 2:
I needed to build bitarray for myself (I needed bit shift), so I couldn't use your pre-built binaries. The problem lies in mingw not working properly with __declspec(dllimport). Python already solves this problem for cygwin builds by using auto-import instead of declspec. However, this is not enabled for mingw builds. So you either need to modify the PyAPI_FUNC macro in pyport.h or add
#define __CYGWIN__
to the bitarray sources.
Post a Comment for "Installing Bitarray In Python 2.6 On Windows"