Ticket #22278 (closed defect: fixed)
python2.4 mac_ver reports incorrect version
| Reported by: | wichert@… | Owned by: | roel@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.1 |
| Keywords: | Cc: | grahamperrin@…, macsforever2000@…, ryandesign@… | |
| Port: | python24 |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


