@@ -33,7 +33,7 @@ def writePlist(plist, path):
3333
3434def shellQuote (value ):
3535 """
36- Return the string value in a form that can savely be inserted into
36+ Return the string value in a form that can safely be inserted into
3737 a shell command.
3838 """
3939 return "'%s'" % (value .replace ("'" , "'\" '\" '" ))
@@ -56,10 +56,10 @@ def getFullVersion():
5656
5757 raise RuntimeError , "Cannot find full version??"
5858
59- # The directory we'll use to create the build, will be erased and recreated
59+ # The directory we'll use to create the build ( will be erased and recreated)
6060WORKDIR = "/tmp/_py24"
6161
62- # The directory we'll use to store third-party sources, set this to something
62+ # The directory we'll use to store third-party sources. Set this to something
6363# else if you don't want to re-fetch required libraries every time.
6464DEPSRC = os .path .join (WORKDIR , 'third-party' )
6565DEPSRC = os .path .expanduser ('~/Universal/other-sources' )
@@ -188,7 +188,7 @@ def getFullVersion():
188188 long_name = "GUI Applications" ,
189189 source = "/Applications/MacPython %(VER)s" ,
190190 readme = """\
191- This package installs IDLE (an interactive Python IDLE ),
191+ This package installs IDLE (an interactive Python IDE ),
192192 Python Launcher and Build Applet (create application bundles
193193 from python scripts).
194194
@@ -244,8 +244,7 @@ def getFullVersion():
244244 readme = """\
245245 This package updates the system python installation on
246246 Mac OS X 10.3 to ensure that you can build new python extensions
247- using that copy of python after installing this version of
248- python.
247+ using that copy of python after installing this version.
249248 """ ,
250249 postflight = "../OSX/fixapplepython23.py" ,
251250 topdir = "/Library/Frameworks/Python.framework" ,
@@ -624,15 +623,15 @@ def buildPython():
624623 print "Running make"
625624 runCommand ("make" )
626625
627- print "Runing make frameworkinstall"
626+ print "Running make frameworkinstall"
628627 runCommand ("make frameworkinstall DESTDIR=%s" % (
629628 shellQuote (rootDir )))
630629
631- print "Runing make frameworkinstallextras"
630+ print "Running make frameworkinstallextras"
632631 runCommand ("make frameworkinstallextras DESTDIR=%s" % (
633632 shellQuote (rootDir )))
634633
635- print "Copy required shared libraries"
634+ print "Copying required shared libraries"
636635 if os .path .exists (os .path .join (WORKDIR , 'libraries' , 'Library' )):
637636 runCommand ("mv %s/* %s" % (
638637 shellQuote (os .path .join (
@@ -720,8 +719,8 @@ def patchScript(inPath, outPath):
720719def packageFromRecipe (targetDir , recipe ):
721720 curdir = os .getcwd ()
722721 try :
723- # The major version (such as 2.5) is included in the pacakge name
724- # because haveing two version of python installed at the same time is
722+ # The major version (such as 2.5) is included in the package name
723+ # because having two version of python installed at the same time is
725724 # common.
726725 pkgname = '%s-%s' % (recipe ['name' ], getVersion ())
727726 srcdir = recipe .get ('source' )
@@ -895,7 +894,7 @@ def installSize(clear=False, _saved=[]):
895894
896895def buildDMG ():
897896 """
898- Create DMG containing the rootDir
897+ Create DMG containing the rootDir.
899898 """
900899 outdir = os .path .join (WORKDIR , 'diskimage' )
901900 if os .path .exists (outdir ):
@@ -909,7 +908,7 @@ def buildDMG():
909908
910909 os .mkdir (outdir )
911910 time .sleep (1 )
912- runCommand ("hdiutil create -volname 'Univeral MacPython %s' -srcfolder %s %s" % (
911+ runCommand ("hdiutil create -volname 'Universal MacPython %s' -srcfolder %s %s" % (
913912 getFullVersion (),
914913 shellQuote (os .path .join (WORKDIR , 'installer' )),
915914 shellQuote (imagepath )))
0 commit comments