Difference between revisions of "CcPublisher Prerequisites"

From Creative Commons
Jump to: navigation, search
Line 14: Line 14:
 
We try to maintain pure Python within our Subversion repository (either with a vendor tag or svn:external).  However, there are a handful of dependencies which are better built on individual systems or installed from binaries.
 
We try to maintain pure Python within our Subversion repository (either with a vendor tag or svn:external).  However, there are a handful of dependencies which are better built on individual systems or installed from binaries.
  
* '''Python 2.4''' Python 2.4 is required.
+
* '''Python 2.4'''
 
** Windows: http://python.org/download/
 
** Windows: http://python.org/download/
 
** Mac OS X: http://undefined.org/python/
 
** Mac OS X: http://undefined.org/python/
Line 20: Line 20:
 
* '''pywin32''' Python Extensions for the Win32 API (Windows only)
 
* '''pywin32''' Python Extensions for the Win32 API (Windows only)
 
** http://starship.python.net/crew/mhammond/win32/Downloads.html
 
** http://starship.python.net/crew/mhammond/win32/Downloads.html
* '''wxPython''' Unicode build recommended
+
* '''wxPython''' Unicode build required to properly support non-ANSI characters in ''any'' input field.  So really, just use the Unicode build.
** [http://wxpython.org/download.php#binaries binary downloads]
+
** [http://prdownloads.sourceforge.net/wxpython/wxPython2.6-win32-unicode-2.6.2.1-py24.exe Windows]
 +
** [http://prdownloads.sourceforge.net/wxpython/wxPython2.6-osx-unicode-2.6.2.1-macosx10.3-py2.4.dmg Mac OS X (10.3 and later)]
 +
** Linux: use a distro-specific package or see [http://wxpython.org/download.php the wxPython download page] for other options
 
* '''elementtree'''
 
* '''elementtree'''
 
** ''Note:'' This is a change as of 8 February 2006 (see [[why ElementTree]] for details on the switch from libxml2)
 
** ''Note:'' This is a change as of 8 February 2006 (see [[why ElementTree]] for details on the switch from libxml2)

Revision as of 13:43, 20 February 2006


This page describes setting up a sandbox for running ccPublisher 2 and P6 from CVS.

Setting Up a ccPublisher Sandbox

A sandbox is a checkout of the ccPublisher sourcecode from Subversion. Setting up a sandbox lets you work with the most recent features, as well as work on the source code yourself. For background on how the sourcecode is organized see ccPublisher 2 Architecture.

As of 8 February 2006, a C compiler is no longer required to build ccPublisher 2 or P6.

Prerequisites

We try to maintain pure Python within our Subversion repository (either with a vendor tag or svn:external). However, there are a handful of dependencies which are better built on individual systems or installed from binaries.

Getting Started

Before you begin building you will need to check out the source code. ccPublisher uses Subversion for source control. To check out the most recent copy of the code, execute the following command:

 $ svn co svn://svn.berlios.de/cctools/publisher/trunk ccpublisher

This will check out the entire required source tree, including dependencies from the Zope 3 project, into the ccpublisher directory.

Running

Once you have the dependencies listed above installed, run main.py to start ccPublisher:

 $ python main.py

Editting the Source

Submitting Your Changes

Distributing ccPublisher

This section contains basic information on building a distribution of ccPublisher (or other P6 Application). We will have scripts for this, we just haven't found the right tool. Ideally something like Ant, but without the Java overhead. Suggestions welcome.

Prerequisites

Windows Mac OS X Linux
  • py2app

Building

Packaging