PyCon / 2014-translation

Translation for the PyCon 2014 website
1 stars 0 forks source link

Translate: "Notes for Tutorial Preparation" #26

Closed coderanger closed 11 years ago

coderanger commented 11 years ago

General installation help: 6:30-8:00PM Tuesday & Wednesday in Open Spaces.

If you want to help others prepare for their Tutorial Installations at PyCon, here are some basic guidelines.

Assume no network

Assume there may not be any network available.

Use virtualenv

Normally, you want to setup using virtualenv (assume people will take more than one tutorial), however there are some packages that will not install easily under virtualenv (pygame, for example; potentially some other packages which require your compilation environment and dependencies). If you're going to use virutalenv, it would look something like this for example:

    mkdir -p PyCon2012/tutorials/django
    cd PyCon2012/tutorials/django
    virtualenv --no-site-packages Vdjango


Since virtualenv typically modifies the shell prompt to show which environment your operating under, pick a meaningful name. I typically start all v-env's with "V" or "E" (so they show together in a directory listing).

People may want to add this to their bash login script:

    activate() # for python virtualenv
    {
        source "$*"/bin/activate
    }


It may help newcomers, as it makes the idioms for virtualenv a little more symmetrical and thus easier to remember, e.g.:

     mkvirtualenv Vsomename
     activate Vsomename
     ... do stuff ...
     deactivate


Once your virtualenv is activated, you can begin installing into it.

Install from USB

Prepare your packages for USB Install (not from the network):

    MY_USB = /path/to/usb
    pip install -d $MY_USB/pkgs -r requirements.txt


Install from your own USB:

    pip install --find-links=file://$MY_USB/pkgs --no-index -r requirements.txt


You don't need to use a requirements.txt file; you can simply load packages individually by name, if that is more convenient.

Ubiquitous USB

When downloading binary packages, whenever possible save for 3 platforms on your USB (Linux, Mac, Win).

So that all the USBs floating around Tutorial Prep nights look the same, follow this pattern:

ygingras commented 11 years ago

This one is confusing since it looks like there is a dupe: https://us.pycon.org/2014/admin/cms/page/46/ https://us.pycon.org/2014/admin/cms/page/36/

I think the EN pages on the CMS need do be merged before we can translate.

halybee commented 11 years ago

Oups! I already translated this one https://us.pycon.org/2014/admin/cms/page/36/.