Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual environment setup #4

Open
brad opened this issue Apr 17, 2013 · 3 comments
Open

Virtual environment setup #4

brad opened this issue Apr 17, 2013 · 3 comments

Comments

@brad
Copy link
Contributor

brad commented Apr 17, 2013

Have you considered setting this up with a virtual environment? I got it working with these simple steps:

## After activating the virtual environment
$ pip install "django>=1.5,<=1.6" django-appconf django-jsonfield south pil psycopg2
## Note that installing psycopg2 via pip removes an apt-get dependancy

## Now install pycairo to the virtualenv
$ curl http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2 | tar jxv
$ ./waf --prefix=$VIRTUALENV configure
$ ./waf build
$ ./waf install

Personally, I like to keep all the python dependancies in the virtual environment to avoid clashing with any other projects I'm working on. Also, this reduces the number of Ubuntu-specific dependencies slightly.

@JoshData
Copy link
Member

Sure, I'd be happy to include alternate virtualenv-style build instructions. And I didn't know where to get py2cairo, so I appreciate that you dug up those instructions. What's 'waf' by the way?

@brad
Copy link
Contributor Author

brad commented Apr 17, 2013

I actually have no clue what 'waf' is, but I found the instructions here and pycairo is here. Actually, revisiting that stackoverflow page, I noticed the answer that points out the project "cairocffi", which is pip installable and API compatible with pycairo. You may want to try that.

@JoshData
Copy link
Member

Huh, cool. Thanks. I'll update the README with these pointers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants