[Zope] Compiling 2.4.0 under Mac OS X?

Jens Vagelpohl jens@zope.com
Fri, 27 Jul 2001 15:50:12 -0400


it says...

 >>> import sys
 >>> sys.platform
'darwin1'
 >>>

(at least on my own self-compiled python)

jens

On Friday, July 27, 2001, at 03:40 , 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?
>
> -Michel
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )