Installing blohg¶
This section will guide you through the alternatives for setting up blohg in your operating system. blohg is currently tested on Linux and Windows, but should works in any operating system where Flask and Mercurial (and/or Git) run properly.
blohg works on Python 2.7.
blohg is available at the Python Package Index (PyPI):
http://pypi.python.org/pypi/blohg
Warning
Before installing blohg manually or using pip
, make sure that you have
a C compiler and the usual build tools (e.g the build-essential
package
for Debian/Ubuntu) installed. You can work around these dependencies if you
need (e.g when running Windows), installing Mercurial with --pure
argument, running the following command inside of a directory with the
Mercurial sources:
# python setup.py --pure install
There’s no way to install Git bindings without a compiler, unfortunately.
Warning
libgit2 is experimental and breaks the ABI every minor release. You may have some trouble when trying to get pygit2 working.
Using pip
¶
To install blohg using pip
, type:
# pip install blohg
If you want to use Git repositories, install a recent version of libgit2 (yeah, setuptools/distutils don’t know how to handle non-python dependencies. see the official documentation for instructions about how to install it on your operating system), and type:
# pip install blohg[git]
You should be careful about the version of libgit2 installed on your system. The major and minor versions of pygit2 should match the major and minor versions of libgit2, e.g. if the required version of pygit2 is 0.19.1, you need libgit2-0.19.*.