#18066: pyrex hardcodes MACOSX_DEPLOYMENT_TARGET to 10.3 ---------------------------------+------------------------------------------ Reporter: harry@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: py-pyrex ---------------------------------+------------------------------------------ Comment(by ram@…): Replying to [comment:2 harry@…]:
IIRC the import of pyrex sets MACOSX_DEPLOYMENT_TARGET to 10.3 regardless of the actual OS version.
It does although it appears that theres something deeper going on here. I changed line 22 of `${prefix}/lib/python2.4/site- packages/Pyrex/Mac/DarwinSystem.py` to set the deployment target to 10.5, i.e.: {{{ os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.5" }}} however doing that `py-glewpy` fails to build with: {{{ pyrexc src/glew.pyx --> src/glew.c /opt/local/var/macports/build/_Users_ram_opt_macports_python_py- glewpy/work/glewpy-0.7.4/src/glew.pyx:32:25: Cannot convert 'src.glew.GLbyte *' to Python object /opt/local/var/macports/build/_Users_ram_opt_macports_python_py- glewpy/work/glewpy-0.7.4/src/glew.pyx:38:30: Cannot convert 'src.glew.GLbyte *' to Python object building 'glew' extension /usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c src/glew.c -o build/temp.macosx-10.5-i386-2.4/src/glew.o src/glew.c:1:2: error: #error Do not use this file, it is the result of a failed Pyrex compilation. error: command '/usr/bin/gcc-4.0' failed with exit status 1 }}} so it looks like theres something wrong with pyrex, what however I have no idea. -- Ticket URL: <http://trac.macports.org/ticket/18066#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS