--- build-installer.py  2009-09-16 16:45:00.416373000 -0300
+++ build-installer.py  2009-10-06 16:35:00.551057400 -0300
@@ -172,14 +172,14 @@
             "--sharedstatedir=/usr/com",
             "--with-terminfo-dirs=/usr/share/terminfo",
             "--with-default-terminfo-dir=/usr/share/terminfo",
-            "--libdir=/Library/Frameworks/Python.framework/Versions/%s/lib"%(getVersion(),),
+            "--libdir=/Library/Frameworks/Stackless.framework/Versions/%s/lib"%(getVersion(),),
             "--enable-termcap",
         ],
         patches=[
             "ncurses-5.5.patch",
         ],
         useLDFlags=False,
-        install='make && make install DESTDIR=%s && cd %s/usr/local/lib && ln -fs ../../../Library/Frameworks/Python.framework/Versions/%s/lib/lib* .'%(
+        install='make && make install DESTDIR=%s && cd %s/usr/local/lib && ln -fs ../../../Library/Frameworks/Stackless.framework/Versions/%s/lib/lib* .'%(
             shellQuote(os.path.join(WORKDIR, 'libraries')),
             shellQuote(os.path.join(WORKDIR, 'libraries')),
             getVersion(),
@@ -191,10 +191,10 @@
 PKG_RECIPES = [
     dict(
         name="PythonFramework",
-        long_name="Python Framework",
-        source="/Library/Frameworks/Python.framework",
+        long_name="Stackless.framework",
+        source="/Library/Frameworks/Stackless.framework",
         readme="""\
-            This package installs Python.framework, that is the python
+            This package installs Stackless.framework, that is the python
             interpreter and the standard library. This also includes Python
             wrappers for lots of Mac OS X API's.
         """,
@@ -230,7 +230,7 @@
     dict(
         name="PythonDocumentation",
         long_name="Python Documentation",
-        topdir="/Library/Frameworks/Python.framework/Versions/%(VER)s/Resources/English.lproj/Documentation",
+        topdir="/Library/Frameworks/Stackless.framework/Versions/%(VER)s/Resources/English.lproj/Documentation",
         source="/pydocs",
         readme="""\
             This package installs the python documentation at a location
@@ -251,11 +251,11 @@
             the system provided Python tools.

             If you don't install this package you'll have to add
-            "/Library/Frameworks/Python.framework/Versions/%(VER)s/bin"
+            "/Library/Frameworks/Stackless.framework/Versions/%(VER)s/bin"
             to your PATH by hand.
             """,
         postflight="scripts/postflight.patch-profile",
-        topdir="/Library/Frameworks/Python.framework",
+        topdir="/Library/Frameworks/Stackless.framework",
         source="/empty-dir",
         required=False,
         selected='unselected',
@@ -269,7 +269,7 @@
             using that copy of python after installing this version.
             """,
         postflight="../Tools/fixapplepython23.py",
-        topdir="/Library/Frameworks/Python.framework",
+        topdir="/Library/Frameworks/Stackless.framework",
         source="/empty-dir",
         required=False,
         selected='unselected',
@@ -675,14 +675,14 @@
         runCommand("mv %s/* %s"%(
             shellQuote(os.path.join(
                 WORKDIR, 'libraries', 'Library', 'Frameworks',
-                'Python.framework', 'Versions', getVersion(),
+                'Stackless.framework', 'Versions', getVersion(),
                 'lib')),
             shellQuote(os.path.join(WORKDIR, '_root', 'Library', 'Frameworks',
-                'Python.framework', 'Versions', getVersion(),
+                'Stackless.framework', 'Versions', getVersion(),
                 'lib'))))

     print "Fix file modes"
-    frmDir = os.path.join(rootDir, 'Library', 'Frameworks', 'Python.framework')
+    frmDir = os.path.join(rootDir, 'Library', 'Frameworks', 'Stackless.framework')
     gid = grp.getgrnam('admin').gr_gid


@@ -706,7 +706,7 @@
     # We added some directories to the search path during the configure
     # phase. Remove those because those directories won't be there on
     # the end-users system.
-    path =os.path.join(rootDir, 'Library', 'Frameworks', 'Python.framework',
+    path =os.path.join(rootDir, 'Library', 'Frameworks', 'Stackless.framework',
                 'Versions', version, 'lib', 'python%s'%(version,),
                 'config', 'Makefile')
     fp = open(path, 'r')
@@ -722,7 +722,7 @@
     # Add symlinks in /usr/local/bin, using relative links
     usr_local_bin = os.path.join(rootDir, 'usr', 'local', 'bin')
     to_framework = os.path.join('..', '..', '..', 'Library', 'Frameworks',
-            'Python.framework', 'Versions', version, 'bin')
+            'Stackless.framework', 'Versions', version, 'bin')
     if os.path.exists(usr_local_bin):
         shutil.rmtree(usr_local_bin)
     os.makedirs(usr_local_bin)
@@ -735,7 +735,7 @@

     # Remove the 'Current' link, that way we don't accidently mess with an already installed
     # version of python
-    os.unlink(os.path.join(rootDir, 'Library', 'Frameworks', 'Python.framework', 'Versions', 'Current'))
+    os.unlink(os.path.join(rootDir, 'Library', 'Frameworks', 'Stackless.framework', 'Versions', 'Current'))



@@ -749,7 +749,7 @@
     data = data.replace('$INSTALL_SIZE', installSize())

     # This one is not handy as a template variable
-    data = data.replace('$PYTHONFRAMEWORKINSTALLDIR', '/Library/Frameworks/Python.framework')
+    data = data.replace('$PYTHONFRAMEWORKINSTALLDIR', '/Library/Frameworks/Stackless.framework')
     fp = open(outPath, 'wb')
     fp.write(data)
     fp.close()
@@ -825,7 +825,7 @@
         major, minor = map(int, getVersion().split('.', 2))
         pl = Plist(
                 CFBundleGetInfoString="Python.%s %s"%(pkgname, vers,),
-                CFBundleIdentifier='org.python.Python.%s'%(pkgname,),
+                CFBundleIdentifier='org.python.stackless.%s'%(pkgname,),
                 CFBundleName='Python.%s'%(pkgname,),
                 CFBundleShortVersionString=vers,
                 IFMajorVersion=major,
@@ -863,7 +863,7 @@

     pl = Plist(
             CFBundleGetInfoString="Python %s"%(vers,),
-            CFBundleIdentifier='org.python.Python',
+            CFBundleIdentifier='org.python.stackless',
             CFBundleName='Python',
             CFBundleShortVersionString=vers,
             IFMajorVersion=major,
