
seen from United States

seen from United States

seen from Poland
seen from Brazil

seen from Malaysia

seen from Canada
seen from Germany
seen from United States

seen from United States

seen from Canada
seen from China
seen from Russia
seen from Philippines
seen from Canada
seen from China
seen from Malaysia
seen from Japan

seen from Japan

seen from T1
seen from United States
On not deploying with virtualenv
Wonderful post on why virtualenv is useful simply for manipulating PATH and PYTHONPATH and should not be used as a deployment mechanism. There is an especially interesting comment about an alternate method for the latter:
lately I have been using debootstrap and schroot to isolate my environments and it’s pretty awesome. I no longer have to worry about bullshit like Gemfile and Bundler and simply install all the gems and libraries I need with “gem” and “apt-get”. If I want a deployable diff of everything then I just use aufs to mount a writable branch on top of the chroot, install all my dependencies, put the top level directory in a debian package and then just ship that or the entire chroot with the writable branch and just set it up on the production box. This setup gives me a truly isolated lightweight environment and reproducable deployment environments in production.
python-schroot
I've been hacking on some static analyses stuff for debuild.me, and i've been involved in a multi-year long yak shaving exercise. As today's fun part, I wrote python-schroot to help run commands in a schroot chroot (say that 10 times fast!)
After a while, I got some neat stuff working. Here's an honest example:
from schroot import schroot with schroot('unstable-amd64') as chroot: chroot.copy('/etc/issue', '/etc/issue', user='root')
This will copy a file (/etc/issue) from the "host" system into the schroot chroot. Neat!
Now, to run something:
with schroot('unstable-amd64') as chroot: out, err, ret = chroot.run("whoami") print(out)
Then, in an effort to make a DSL, I set out to create the following syntax:
with schroot('unstable-amd64') as chroot: "apt-get update" in chroot
but, hit some issues with implementing it, and got the following to work:
with schroot('unstable-amd64') as chroot: "apt-get update" > chroot // "root" # apt-get update as root
More later!