[Zope] Compiling 2.4.0 under Mac OS X?
zbir@urbanape.com
zbir@urbanape.com
Fri, 27 Jul 2001 15:54:04 -0400
> 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?
'darwin1'
me = { 'name' : 'Zachery Bir', 'email' : 'zbir@urbanape.com',
'voice' : '(804) 353-3742', 'url' : 'http://www.urbanape.com/' }