[Zope] Compiling 2.4.0 under Mac OS X?

Michel Pelletier michel@digicool.com
Fri, 27 Jul 2001 12:40:41 -0700


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