[C++-sig] compiling python extensions to work for multiple versions of python
Wichert Akkerman
wichert at wiggy.net
Wed May 25 17:25:16 CEST 2011
On 5/25/11 17:21 , Karl Kuehn wrote:
> 1) Is this a limitation of Boost.Python? A trick from MySQL that I can emulate? Am I missing something obvious? I have tried a large number of variations in build commands using combinations of the following:
This is a limitation of python, and I would be very afraid of using a
MySQL module if it was compiled for another python version, even if it
does load. Python versions do not offer a stable ABI: it will change
depending on python version, OS, python configure options, compile
flags, etc. You should always try to compile Python modules against the
specific Python version you want to use.
Wichert.
More information about the Cplusplus-sig
mailing list