install.rst: Use PyPI wheels on Windows

This commit is contained in:
anatoly techtonik 2017-07-07 21:24:04 +03:00 committed by GitHub
parent 62c70e852d
commit ab3bb01249

View File

@ -193,25 +193,27 @@ everytime. Verify yourself if curious:
Installing on Windows Installing on Windows
=================================== ===================================
pygit2 expects to find the libgit2 installed files in the directory specified `pygit2` for Windows is packaged into wheels and can be easily
in the ``LIBGIT2`` environment variable. installed with `pip`:
In addition, make sure that libgit2 is build in "__cdecl" mode. pip install pygit2
The following recipe shows you how to do it, assuming you're working
from a bash shell: For development it is also possible to build `pygit2` with `libgit2`
from sources. `libgit2` location is specified by the ``LIBGIT2``
environment variable. `libgit2` should be built in "__cdecl" mode.
The following recipe shows you how to do it from a bash shell:
.. code-block:: sh .. code-block:: sh
$ export LIBGIT2=C:/Dev/libgit2 $ export LIBGIT2=C:/Dev/libgit2
$ wget https://github.com/libgit2/libgit2/archive/v0.26.0.tar.gz $ git clone --depth=1 -b maint/v0.26 https://github.com/libgit2/libgit2.git
$ tar xzf v0.26.0.tar.gz $ cd libgit2
$ cd libgit2-0.26.0/
$ cmake . -DSTDCALL=OFF -DCMAKE_INSTALL_PREFIX=$LIBGIT2 -G "Visual Studio 9 2008" $ cmake . -DSTDCALL=OFF -DCMAKE_INSTALL_PREFIX=$LIBGIT2 -G "Visual Studio 9 2008"
$ cmake --build . --config release --target install $ cmake --build . --config release --target install
$ ctest -v $ ctest -v
At this point, you're ready to execute the generic pygit2 installation At this point, you're ready to execute the generic `pygit2`
steps described above. installation steps described at the start of this page.
Installing on OS X Installing on OS X