fablib is a helper library for Fabric to setup a sandboxed Python environment (virtualenv) for your project without the overhead of having to use Buildout.
- Create virtualenv and install packages (including dependencies)
- Automatically include PyWin32 from global site-packages
- Use PyPM (instead of pip) if available -- saves a lot of time. Requires ActivePython.
- Supports Python 3.
Setup:
$ cd /to/my/project $ git submodule add git://github.com/srid/fablib.git fablib $ cat > fabfile.py import sys import os.path as P from fabric.api import * # Import github.com/srid/fablib sys.path.append(P.abspath( P.join(P.dirname(__file__), 'fablib'))) import venv clean = venv.clean init = venv.init
Install Fabric, virtualenv and use:
$ fab -l $ fab clean $ fab init # `fab init:pyver=3.1` for Py3k!
No more buildout!
$ bin/python
See the applib project for a real-world example.