Ronald Oussoren avatar Ronald Oussoren committed 3fd230c

- Updated installer: Install only the PyObjC python package and the PB templates
- Updates release package: Add 'PyObjC Documentation & Examples'
- Add custom readme for the disk-image.

Comments (0)

Files changed (7)

pyobjc/Doc/coding-style.html

 <li>Add appropriate ReST style fields to the top of the document as comments:<pre>
 # Author: David Goodger
 # Contact: goodger@users.sourceforge.net
-# Revision: $Revision: 1.14 $
-# Date: $Date: 2003/07/02 17:44:52 $
+# Revision: $Revision: 1.15 $
+# Date: $Date: 2003/07/03 20:43:33 $
 # Copyright: This module has been placed in the public domain.
 </pre>
 </li>

pyobjc/Installer Package/ReadMe.html

+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>
+Welcome to PyObjC</title>
+</head>
+<body>
+<h2>Welcome to PyObjC</h2>
+<p>The PyObjC package provides the glue needed to interface the Python interpreter
+with the Objective-C language. At its core is the <code><span>objc</span></code> module makes 
+Objective-C objects and classes available as first-class Python citizens. It is 
+not only possible to use Objective-C objects but you can also subclass 
+Objective-C classes.</p>
+<p>To make it easier to use the core <code><span>objc</span></code> module, this package also provides 
+a number of modules that are wrappers for the Cocoa frameworks, such as
+Foundation and AppKit. These modules not only give you access to the classes in
+these frameworks but also to the functions and constants in those modules.</p>
+<p>To install this package double-click on <code><span>PyObjC.pkg</span></code>. This will install the
+PyObjC python package and some Project Builder templates. The documentation
+and examples are found in  the folder <code><span>PyObjC</span> <span>Documentation</span> <span>and</span> <span>Examples</span></code>. 
+Install these by dragging this folder to you disk, <code><span>/Library/Documentation</span></code>
+is a suitable location.</p>
+<p>NOTE: The installer package is for MacOS X 10.2 <i>only</i> and is for use with
+the Apple supplied Python 2.2 installation. If you use MacPython 2.3 you should
+use the Package Manager application to install PyObjC. If you use other versions
+of MacOS X you should install from the sources, see the source archive for
+details.</p>
+</body>
+</html>

pyobjc/Installer Package/ReadMe.txt

+=================
+Welcome to PyObjC
+=================
+
+The PyObjC package provides the glue needed to interface the Python interpreter
+with the Objective-C language. At its core is the ``objc`` module makes 
+Objective-C objects and classes available as first-class Python citizens. It is 
+not only possible to use Objective-C objects but you can also subclass 
+Objective-C classes.
+
+To make it easier to use the core ``objc`` module, this package also provides 
+a number of modules that are wrappers for the Cocoa frameworks, such as
+Foundation and AppKit. These modules not only give you access to the classes in
+these frameworks but also to the functions and constants in those modules.
+
+To install this package double-click on ``PyObjC.pkg``. This will install the
+PyObjC python package and some Project Builder templates. The documentation
+and examples are found in  the folder ``PyObjC Documentation and Examples``. 
+Install these by dragging this folder to you disk, ``/Library/Documentation``
+is a suitable location.
+
+NOTE: The installer package is for MacOS X 10.2 *only* and is for use with
+the Apple supplied Python 2.2 installation. If you use MacPython 2.3 you should
+use the Package Manager application to install PyObjC. If you use other versions
+of MacOS X you should install from the sources, see the source archive for
+details.

pyobjc/Installer Package/Resources/InstallationCheck

 
 case $VER in
 10.0|10.1|10.0.*|10.1.*)
-	exit `expr $FAIL + MSG_TOO_OLD`
+	exit `expr $FAIL + $MSG_TOO_OLD`
 	;;
 
 10.2|10.2.*)
 	exit 0
 	;;
 *)
-	exit `expr $FAIL + MSG_TOO_NEW`
+	exit `expr $FAIL + $MSG_TOO_NEW`
 	;;
 esac

pyobjc/Installer Package/Resources/ReadMe.txt

 the Foundation, AppKit, WebKit and AddressBook frameworks. This makes it easy 
 to build Cocoa applications in Python. 
 
-Other than the python modules the installer also installs Project Builder templates, some examples (in /Library/Developer/Examples/PyObjC) and documentation (in /Library/Developer/Documentation/PyObjC).
+Other than the python modules the installer also installs Project Builder templates (in /Developer/ProjectBuilder Extras/Project Templates)
 
 The latest information can always be found at:
 

pyobjc/Installer Package/Resources/preflight

 rm -rf "/Developer/Examples/PyObjC"
 
 rm -rf "/Library/Receipts/PyObjC-0.8.pkg"
+rm -rf "/Library/Receipts/PyObjC 0.7.0.pkg"
 
 # Versions of PyObjC before 0.9 installed python files in the site-packages
 # directory, from 0.9 onwards we install in site-packages/PyObjC.

pyobjc/Scripts/make_distrib.py

 
 print "Generateing HTML documentation"
 os.path.walk('Doc', rest2HTML, ['Doc/announcement.txt'])
-rest2HTML(None, '.', ['Install.txt', 'ReadMe.txt', 'Examples/00ReadMe.txt', 'Installer Package/Resources/ReadMe.txt'])
+rest2HTML(None, '.', ['Install.txt', 'ReadMe.txt', 'Examples/00ReadMe.txt', 'Installer Package/ReadMe.txt'])
 
 if DOC_ONLY:
     sys.exit(0)
 	sys.stdout.write(ln)
 
 print "Copying readme and license"
-shutil.copyfile("ReadMe.txt", os.path.join(OUTPUTDIR, "ReadMe.txt"))
+shutil.copyfile("Installer Package/ReadMe.html", os.path.join(OUTPUTDIR, "ReadMe First.html"))
 shutil.copyfile("License.txt", os.path.join(OUTPUTDIR, "License.txt"))
 
 print "Setting up developer templates"
 pbxSpecificationsDestination = os.path.join(basedir, 'Developer', 'ProjectBuilder Extras', 'Specifications')
 shutil.copytree(os.path.join('ProjectBuilder Extras','Specifications'), pbxSpecificationsDestination)
 
-print "Setting up developer examples"
-makeDir(basedir, 'Library', 'Developer', 'Examples')
-examplesDestination = os.path.join(basedir, 'Library', 'Developer', 'Examples', 'PyObjC')
+print "Setting up developer examples & documentation"
+
+DOCDIR=os.path.join(OUTPUTDIR, "PyObjC Documentation & Examples")
+makeDir(OUTPUTDIR, "PyObjC Documentation & Examples")
+
+examplesDestination = os.path.join(DOCDIR, "Examples")
 shutil.copytree('Examples', examplesDestination)
 
-print "Setting up some documentation"
-makeDir(basedir, 'Library', 'Developer', 'Documentation')
-docsDestination = os.path.join(basedir, 'Library', 'Developer', 'Documentation', 'PyObjC')
+docsDestination = os.path.join(DOCDIR, "Documentation")
 shutil.copytree('Doc', docsDestination)
 
 os.path.walk(templateDestination, killNasties, None)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.