user248237
user248237

Reputation:

Making a Python package compatible with virtualenv

How can a Python package, written with the usual setup.py setup of distutils (containing a scripts setting for scripts meant to be executed) be made compatible with virtualenv and pip? Is there a guide for Do's and Don'ts or issues to keep in mind when writing a package in a way so as to be compatible with virtual environments? Or is any setuptools package guaranteed to work with virtualenv? thanks.

Upvotes: 2

Views: 86

Answers (1)

Ned Batchelder
Ned Batchelder

Reputation: 375992

Unless you are doing something really unusual in your setup.py, it will work fine with virtualenv and pip. This is because setup.py is quite declarative in the first place (despite being an executable program), and virtualenv and pip were designed to work with existing packages which were written before they existed.

Upvotes: 3

Related Questions