[Zope] Compiling 2.4.0 under Mac OS X?

Mark James Adams mark@raysend.com
Fri, 27 Jul 2001 15:53:13 -0400


On Friday, July 27, 2001, at 03:40 PM, Michel Pelletier wrote:

> Andreas Jung wrote:
>>
>> Zope reads lib/python/version.txt and uses the information as
>> Version information. Try to remove the file and look if your
>> Mac still thinks to be a Linux machine :-)
>
> Your right that version.txt does contain a platform asserion, but below
> it apears (to me) to ignore that and get the platform information from
> sys.platform (function found in lib/python/App/version_txt.py):
>
> v = sys.version_info
>
> def version_txt():
>
>     try:
>         s = open(os.path.join(SOFTWARE_HOME,'version.txt')).read()
>         s = re.sub("\(.*?)\?","",s)
>         s= '(%s, python %d.%d.%d, %s)' % (s,v[0],v[1],v[2],sys.platform)
>         return s
>     except:
>         return '(unreleased version, python %d.%d.%d, %s)' %
> (v[0],v[1],v[2],sys.platform)
>
> what does Mac OS X's sys.platform say?

[raysend:~] mark% python
Python 2.1 (#4, 05/17/01, 18:34:21)
[GCC Apple DevKit-based CPP 6.0alpha] on darwin1
Type "copyright", "credits" or "license" for more information.
 >>> import sys
 >>> sys.platform
'darwin1'

--
Mark James Adams
mark@raysend.com