My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
InstallingWebpyte  
Installing Webpyte and dependencies
Updated Feb 4, 2010 by nandoflorestan@gmail.com

The steps to install Webpyte are:

Have a Python environment

  • Install Python 2.6.1
    • You can have multiple Python versions. If your operating system currently uses Python 2.5, you can still invoke Python 2.6 by typing python2.6.
  • Install setuptools, which gives you the easy_install command:
    • sudo apt-get install python-setuptools
    • Or, manual installation of the packages below is the alternative for people who dislike setuptools. Manual installation usually involves:
      • Downloading and uncompressing the package
      • Copying the correct package directory to ~/.local/lib/python2.6/site-packages/
      • Opening an interpreter and importing the package to see if it works.
      • ipython is a very cool interpreter, check it out some time.
  • Optionally install and use virtualenv
  • Have a Subversion client ready: sudo apt-get install subversion

Install the dependencies

easy_install -UZ cherrypy           # the web server
easy_install -UZ "Paste >= 1.7.2"   # displays pretty exceptions
easy_install -UZ "Unipath >= 0.2.1" # object-oriented file manipulation

# Turbomail 3.0 was best installed from SVN at the time of writing.
# Go to the directory that contains reusable Python packages
cd ~/.local/lib/python2.6/site-packages/
# Check out the package
svn co http://python-turbomail.org/svn/trunk/turbomail/ turbomail
# http://www.python-turbomail.org/wiki/TurboMailDownload

The above packages are absolutely necessary for Webpyte to run. The following are only highly recommended (you can use something else instead), but some parts of Webpyte (especially the application modules) use them:

easy_install -UZ "Genshi >= 0.5.1"   # XML templating
easy_install -UZ "Routes >=1.10.1"   # URL mapping
easy_install -UZ "SQLAlchemy >= 0.5" # ORM for database access
easy_install -UZ "pexpect >= 2.4"    # for the database backup package

Install Webpyte itself

There has been no official release yet, but you can download Webpyte from the Subversion repository. So:

# Install a Subversion client
sudo apt-get install subversion
# Go to the directory that contains reusable Python packages
cd ~/.local/lib/python2.6/site-packages/
# Issue the command to download the current version
svn checkout http://webpyte.googlecode.com/svn/trunk/webpyte webpyte
# This command should create a "webpyte" directory with the code in it.

Next see ExampleApp.


Sign in to add a comment
Powered by Google Project Hosting