3. Environments!
Porque?
Isolation - Python packages and even versions live in
their own little $HOME!
4. Environments!
Porque?
Isolation - Python packages and even versions live in
their own little $HOME!
Permissions - Not everyone is 1337 and can be a sudoer.
5. Environments!
Porque?
Isolation - Python packages and even versions live in
their own little $HOME!
Permissions - Not everyone is 1337 and can be a sudoer.
Organization - each project can maintain it’s own
requirements file of python packages and you don’t
have version overlap.
6. Environments!
Porque?
Isolation - Python packages and even versions live in
their own little $HOME!
Permissions - Not everyone is 1337 and can be a sudoer.
Organization - each project can maintain it’s own
requirements file of python packages and you don’t
have version overlap.
Anti-globalization - installing stuff to the system
globally is generally not a good idea, unless it’s
something like PIP.
15. virtualenvwrapper
$ pip install virtualenvwrapper
Some simple environment vars need to go into .bashrc
export WORKON_HOME=$HOME/.virtualenv
source /usr/local/bin/virtualenvwrapper.sh
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true
16. virtualenvwrapper
$ pip install virtualenvwrapper
Some simple environment vars need to go into .bashrc
export WORKON_HOME=$HOME/.virtualenv
source /usr/local/bin/virtualenvwrapper.sh
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true
The last package that you should ever install
globally
30. Holy grail of
pythonbrew
Are you ready for this?
Ok, maybe it’s not THAT epic ;)
31. Holy grail of
pythonbrew
Are you ready for this?
Ok, maybe it’s not THAT epic ;)
$ pybrew py awesome_script.py
32. Holy grail of
pythonbrew
Are you ready for this?
Ok, maybe it’s not THAT epic ;)
$ pybrew py awesome_script.py
What does this do?!?! It tests your python script against all
python versions! EPIC!
34. Let’s reiterate
virtualenv & virtualenvwrapper allow you to
create environments and manage them with
the default system Python.
35. Let’s reiterate
virtualenv & virtualenvwrapper allow you to
create environments and manage them with
the default system Python.
pybrew is like virtualenv & virtualenvwrapper
had babies with a BRAWNDO ENERGY
DRINK! WIN AT PYTHON!
36. The EPIC end.
Thanks for listening.
I’m Glen Zangirolami and I love developing EPIC
Python projects that WIN.
Twitter @glenbot
http://theglenbot.com