We're using re2 to get some speed gains on the many regular expressions we're trying to match. So far building it was either a manual step or a script that ran when building docker container. I decided to create a conda package (we're using Miniconda as our Python environment).
I started with conda skeleton pypi re2 (you need to conda install conda-build first). Then after some tweaking to build.sh we were good to go.
The result - you can now conda install -c tebeka re2 (only 64bit linux supported currently).
The project is here, I'll gladly accept any comments/improvements.
Here's build.sh which patches re2 Makefile and added the library and header location to the Python build step.
If it won't be simple, it simply won't be. [Hire me, source code] by Miki Tebeka, CEO, 353Solutions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment