#27916: python27 runtime IOError due to MACOSX_DEPLOYMENT_TARGET -------------------------------+-------------------------------------------- Reporter: joshmoz@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: python27 -------------------------------+-------------------------------------------- Comment(by deric@…): The `python_select` port in macports will allow you to easily switch between different versions of python installed by macports and the apple supplied one. This checking of MACOSX_DEPLOYMENT_TARGET is a bit dubious imo. since the site module always is imported automatically during initializtion and the getuserbase call then will import the build configuration and bail. Basically any environment with MACOSX_DEPLOYMENT_TARGET set to something below what python2.7 was built with will not run. Another quick workaround is setting MACOSX_DEPLOYMENT_TARGET in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile since that's where sysconfig is getting the value from. -- Ticket URL: <https://trac.macports.org/ticket/27916#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS