Here is my example using mautrix-facebook
[https://github.com/tulir/mautrix-facebook] as example‌
$ mkdir bridges/facebook
$ cd bridges/facebook
$ virtualenv -p /usr/local/bin/python3.7 .
$ bash
$ source bin/activate
$ pip install --global-option=build_ext --global-option="-I/usr/local/include" --upgrade git+https://github.com/tulir/mautrix-facebook.git#