tobie/ua-parser — pull request #131 by selwin (2012-12-28 08:22:37+00:00)
Title: Python compile yaml to json

Hi there,

I addressed two issues with this pull request:

1. #88 - issue `regexes.yaml`'s path relative to `user_agent_parser.py` are different if installed via `git clone` (pip) or `python setup.py install`. The reason seems to be that `pip` actually calls `python setup.py *develop*` after cloning instead of `install`. Now both commands always copy `regexes.yaml` to `ua_parser` directory.
2. #117 - after `regexes.yaml` is installed, it's converted into `regexes.json` to speed up regex parsing, as discussed with @elsigh

Inputs welcome :)