Differences between revisions 1 and 2
Revision 1 as of 2008-03-10 22:51:13
Size: 282
Editor: JeffRush
Comment:
Revision 2 as of 2008-03-11 19:10:47
Size: 772
Editor: JeffRush
Comment:
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
  + Installing virtualenv and setting up a sandbox   + Installing Tools for the Class

    | $ cd /tmp
    | $ wget http://peak.telecommunity.com/dist/ez_setup.py
    | $ sudo python ez_setup.py
    | $ sudo easy_install virtualenv
    | $ sudo easy_install zc.buildout

  + Setting a Sandbox or Two

    | $ virtualenv pycon
    | $ virtualenv --no-site-packages pycon
    | $ cd pycon
    | $ bin/python
    | $ source bin/activate -or- activate.bat
    | $ deactivate

    ..

    + explore:
       + directory tree
       + *sys.path*
    + for each kind of sandbox

Eggs and Buildout Deployment in Python

Slides:

  • Virtualenv
  • Distutils
  • Setuptools
  • Buildout

Exercises:

  • Installing Tools for the Class

    $ cd /tmp
    $ sudo python ez_setup.py
    $ sudo easy_install virtualenv
    $ sudo easy_install zc.buildout
  • Setting a Sandbox or Two

    $ virtualenv pycon
    $ virtualenv --no-site-packages pycon
    $ cd pycon
    $ bin/python
    $ source bin/activate -or- activate.bat
    $ deactivate
    • explore:
      • directory tree
      • sys.path
    • for each kind of sandbox

buildout/pycon2008 tutorial (last edited 2013-02-27 12:02:22 by MichaelCarlsson)

Unable to edit the page? See the FrontPage for instructions.