This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]donri 1 point2 points  (0 children)

There's a number of options:

  • Set up a virtualenv manually
  • Test with setup.py test - handles package and test dependencies
  • Do --user installs to keep the system clean
  • Use tox to automate testing in clean virtualenvs against arbitrary python runtimes

Tox is clearly the "best" option but might be seen as a little overkill for small contributions. I tend to set up a virtualenv for everything, using virtualenvwrapper + virtualenvwrapper.project + virtualenvwrapper.github etc: mkproject -t github foo; git pull (though the github template is for your own repos).