update the mac installer script

This commit is contained in:
Benjamin Peterson 2008-10-03 11:52:06 +00:00
parent c2dfd8c081
commit c310476802
1 changed files with 11 additions and 9 deletions

View File

@ -129,8 +129,8 @@ LIBRARY_RECIPES = [
), ),
dict( dict(
name="SQLite 3.3.5", name="SQLite 3.6.3",
url="http://www.sqlite.org/sqlite-3.3.5.tar.gz", url="http://www.sqlite.org/sqlite-3.6.3.tar.gz",
checksum='93f742986e8bc2dfa34792e16df017a6feccf3a2', checksum='93f742986e8bc2dfa34792e16df017a6feccf3a2',
configure_pre=[ configure_pre=[
'--enable-threadsafe', '--enable-threadsafe',
@ -170,8 +170,8 @@ LIBRARY_RECIPES = [
), ),
), ),
dict( dict(
name="Sleepycat DB 4.4", name="Sleepycat DB 4.7.25",
url="http://downloads.sleepycat.com/db-4.4.20.tar.gz", url="http://download.oracle.com/berkeley-db/db-4.7.25.tar.gz",
#name="Sleepycat DB 4.3.29", #name="Sleepycat DB 4.3.29",
#url="http://downloads.sleepycat.com/db-4.3.29.tar.gz", #url="http://downloads.sleepycat.com/db-4.3.29.tar.gz",
buildDir="build_unix", buildDir="build_unix",
@ -585,21 +585,23 @@ def buildPythonDocs():
version = getVersion() version = getVersion()
docdir = os.path.join(rootDir, 'pydocs') docdir = os.path.join(rootDir, 'pydocs')
novername = 'python-docs-html.tar.bz2'
name = 'html-%s.tar.bz2'%(getFullVersion(),) name = 'html-%s.tar.bz2'%(getFullVersion(),)
sourceArchive = os.path.join(DEPSRC, name) sourceArchive = os.path.join(DEPSRC, name)
if os.path.exists(sourceArchive): if os.path.exists(sourceArchive):
print "Using local copy of %s"%(name,) print "Using local copy of %s"%(name,)
else: else:
print "Downloading %s"%(name,) print "Downloading %s"%(novername,)
downloadURL('http://www.python.org/ftp/python/doc/%s/%s'%( downloadURL('http://www.python.org/ftp/python/doc/%s/%s'%(
getFullVersion(), name), sourceArchive) getFullVersion(), novername), sourceArchive)
print "Archive for %s stored as %s"%(name, sourceArchive) print "Archive for %s stored as %s"%(name, sourceArchive)
extractArchive(os.path.dirname(docdir), sourceArchive) extractArchive(os.path.dirname(docdir), sourceArchive)
os.rename( os.rename(
os.path.join( os.path.join(
os.path.dirname(docdir), 'Python-Docs-%s'%(getFullVersion(),)), os.path.dirname(docdir), 'python-docs-html'),
docdir) docdir)
@ -1028,11 +1030,11 @@ def main():
buildPython() buildPython()
buildPythonDocs() buildPythonDocs()
fn = os.path.join(WORKDIR, "_root", "Applications", fn = os.path.join(WORKDIR, "_root", "Applications",
"MacPython %s"%(getVersion(),), "Update Shell Profile.command") "Python %s"%(getVersion(),), "Update Shell Profile.command")
patchFile("scripts/postflight.patch-profile", fn) patchFile("scripts/postflight.patch-profile", fn)
os.chmod(fn, 0755) os.chmod(fn, 0755)
folder = os.path.join(WORKDIR, "_root", "Applications", "MacPython %s"%( folder = os.path.join(WORKDIR, "_root", "Applications", "Python %s"%(
getVersion(),)) getVersion(),))
os.chmod(folder, 0755) os.chmod(folder, 0755)
setIcon(folder, "../Icons/Python Folder.icns") setIcon(folder, "../Icons/Python Folder.icns")