[MacPorts] #22278: python2.4 mac_ver reports incorrect version
#22278: python2.4 mac_ver reports incorrect version -------------------------------+-------------------------------------------- Reporter: wichert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: -------------------------------+-------------------------------------------- On python 2.4 the version information is missing: {{{ Python 2.4.6 (#1, Oct 28 2009, 13:08:10) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import platform platform.mac_ver() ('', ('', '', ''), '') }}}
Python 2.6 gets it correct: {{{ python2.6 Python 2.6.2 (r262:71600, Oct 7 2009, 14:08:41) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import platform platform.mac_ver() ('10.6.1', ('', '', ''), 'i386') }}}
this breaks setuptools since it can no longer match the architecture of the current system with the architecture of an egg and will refuse to install them. -- Ticket URL: <http://trac.macports.org/ticket/22278> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22278: python2.4 mac_ver reports incorrect version -------------------------------+-------------------------------------------- Reporter: wichert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: python24 -------------------------------+-------------------------------------------- Changes (by macsforever2000@…): * port: => python24 -- Ticket URL: <http://trac.macports.org/ticket/22278#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22278: python2.4 mac_ver reports incorrect version -------------------------------+-------------------------------------------- Reporter: wichert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: python24 -------------------------------+-------------------------------------------- Comment(by blb@…): I'm surprised python24 even builds on 10.6, let alone works right; what do you need 2.4 for, as whatever it is should be moved to 2.6? -- Ticket URL: <http://trac.macports.org/ticket/22278#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22278: python2.4 mac_ver reports incorrect version -------------------------------+-------------------------------------------- Reporter: wichert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: python24 -------------------------------+-------------------------------------------- Comment(by wichert@…): Plons still requires python 2.4. There is a python 2.4 buildout in the collective on svn.plone.org which works correctly on 10.6, so this is certainly doable. -- Ticket URL: <http://trac.macports.org/ticket/22278#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22278: python2.4 mac_ver reports incorrect version -------------------------------+-------------------------------------------- Reporter: wichert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: python24 -------------------------------+-------------------------------------------- Comment(by jmr@…): 2.5 gets it wrong too: {{{ Python 2.5.4 (r254:67916, Oct 12 2009, 05:38:57) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import platform platform.mac_ver() ('4294967306.4294967302.4294967297', ('', '', ''), '') }}} This is pretty clearly an upstream issue. The Mac code simply wasn't 64-bit compatible until 2.6, our backports of some patches to get 2.5 sort-of working notwithstanding.
-- Ticket URL: <http://trac.macports.org/ticket/22278#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22278: python2.4 mac_ver reports incorrect version -------------------------------+-------------------------------------------- Reporter: wichert@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: python24 -------------------------------+-------------------------------------------- Comment(by wichert@…): [http://svn.plone.org/svn/collective/buildout/python/src/python-2.4-darwin-10... This patch] from the python buildout on svn.plone.org might do the trick. In addition to that patch that buildout does two things: set {{{CFLAGS=-arch x86_64}}} and make sure {{{MACOSX_DEPLOYMENT_TARGET=10.6}}}, both of which macports already does iirc. -- Ticket URL: <http://trac.macports.org/ticket/22278#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22278: python2.4 mac_ver reports incorrect version -------------------------------+-------------------------------------------- Reporter: wichert@… | Owner: roel@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: python24 -------------------------------+-------------------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => roel@… -- Ticket URL: <http://trac.macports.org/ticket/22278#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22278: python2.4 mac_ver reports incorrect version -------------------------------+-------------------------------------------- Reporter: wichert@… | Owner: roel@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: python24 -------------------------------+-------------------------------------------- Comment(by roel@…): The modules gestalt and MacOS aren't included. It fails in platform.py and returns the defaults {{{ try: import gestalt import MacOS except ImportError: return release,versioninfo,machine }}} -- Ticket URL: <http://trac.macports.org/ticket/22278#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22278: python2.4 mac_ver reports incorrect version -------------------------------+-------------------------------------------- Reporter: wichert@… | Owner: roel@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: python24 -------------------------------+-------------------------------------------- Comment(by roel@…): Attached is a fix for SL. It is based on the patch Wichert sent in. -- Ticket URL: <http://trac.macports.org/ticket/22278#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22278: python2.4 mac_ver reports incorrect version -------------------------------+-------------------------------------------- Reporter: wichert@… | Owner: roel@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: python24 -------------------------------+-------------------------------------------- Comment(by roel@…): The above patch is tested on Leopard and Snow Leopard, and works. Can someone commit this? -- Ticket URL: <http://trac.macports.org/ticket/22278#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22278: python2.4 mac_ver reports incorrect version -------------------------------+-------------------------------------------- Reporter: wichert@… | Owner: roel@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: python24 -------------------------------+-------------------------------------------- Comment(by roel@…): Added diff based on latest svn version (Portfile.diff). The three patches should go in the files directory. Could someone commit this? -- Ticket URL: <http://trac.macports.org/ticket/22278#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22278: python2.4 mac_ver reports incorrect version --------------------------------+------------------------------------------- Reporter: wichert@… | Owner: roel@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: fixed | Keywords: Port: python24 | --------------------------------+------------------------------------------- Changes (by macsforever2000@…): * status: new => closed * resolution: => fixed Comment: r70266 -- Ticket URL: <http://trac.macports.org/ticket/22278#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22278: python2.4 mac_ver reports incorrect version --------------------------------+------------------------------------------- Reporter: wichert@… | Owner: roel@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: fixed | Keywords: Port: python24 | --------------------------------+------------------------------------------- Changes (by ryandesign@…): * cc: macsforever2000@…, ryandesign@… (added) Comment: Shouldn't the portfile's revision also be incremented? -- Ticket URL: <http://trac.macports.org/ticket/22278#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22278: python2.4 mac_ver reports incorrect version --------------------------------+------------------------------------------- Reporter: wichert@… | Owner: roel@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: fixed | Keywords: Port: python24 | --------------------------------+------------------------------------------- Comment(by macsforever2000@…): Done in r70279. -- Ticket URL: <http://trac.macports.org/ticket/22278#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts