Differences between revisions 2 and 3
Revision 2 as of 2008-03-11 19:10:47
Size: 772
Editor: JeffRush
Comment:
Revision 3 as of 2008-03-11 19:52:09
Size: 815
Editor: JeffRush
Comment:
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
  + Installing Tools for the Class   1. Installing Tools for the Class
Line 18: Line 18:
    | $ 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
  | $ 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
Line 24: Line 24:
  + Setting a Sandbox or Two   2. Instantiating a Sandbox or Two
Line 26: Line 26:
    | $ virtualenv pycon
    | $ virtualenv --no-site-packages pycon
    | $ cd pycon
    | $ bin/python
    | $ source bin/activate -or- activate.bat
    | $ deactivate
  | $ virtualenv pycon   -or-
  | $ virtualenv --no-site-packages pycon
     | $ cd pycon
  | $ bin/python
  | $ source bin/activate -or- activate.bat
     | $ deactivate
Line 33: Line 33:
    ..   ..
Line 35: Line 35:
    + explore:
       + directory tree
       + *sys.path*
    + for each kind of sandbox
  + explore:
  + directory tree
        + *sys.path*
  + for each kind of sandbox

  3. ???

Eggs and Buildout Deployment in Python

Slides:

  • Virtualenv
  • Distutils
  • Setuptools
  • Buildout

Exercises:

  1. Installing Tools for the Class

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

    $ virtualenv pycon -or-
    $ 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
  3. ???

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

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