axiak / pyre2

Python wrapper for RE2
BSD 3-Clause "New" or "Revised" License
295 stars 39 forks source link

Make it easier to install when the re2 library is in a virtualenv. #13

Open akumria opened 12 years ago

akumria commented 12 years ago

Python virtual environments (virtualenv) can have private library and include directories. If we detect that we are inside a virtualenv (with the VIRTUAL_ENV environment variable) add it to the list of paths to search for the re2 library.

Installing the re2 library in a virtualenv is basically:

make
make test
make install prefix=$VIRTUAL_ENV