I am including in a buildout an egg (jsonlib) that uses C extensions.
On pypi a precompiled blob is present. But it's not compatible with my environment: I get a undefined symbol: PyUnicodeUCS4_FromEncodedObject
error.
I know this has to do with different environments at compile time and runtime.
To solve it buildout should compile the package instead of using the prebuilt one.
How do I tell buildout to compile a package (all packages would be fine too) no matter what precompiled egg files it finds on pypi?
There you go:
And to do this only for some OS using conditional sections (disclaimer, I wrote this) with the latest version of buildout:
after running this, check the dist dir, it will have a copy of the fetched archive for verification: no prebuilt eggs in there ;)