Skip to content

Commit ab3bb01

Browse files
authored
install.rst: Use PyPI wheels on Windows
1 parent 62c70e8 commit ab3bb01

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

docs/install.rst

+12-10
Original file line numberDiff line numberDiff line change
@@ -193,25 +193,27 @@ everytime. Verify yourself if curious:
193193
Installing on Windows
194194
===================================
195195

196-
pygit2 expects to find the libgit2 installed files in the directory specified
197-
in the ``LIBGIT2`` environment variable.
196+
`pygit2` for Windows is packaged into wheels and can be easily
197+
installed with `pip`:
198198

199-
In addition, make sure that libgit2 is build in "__cdecl" mode.
200-
The following recipe shows you how to do it, assuming you're working
201-
from a bash shell:
199+
pip install pygit2
200+
201+
For development it is also possible to build `pygit2` with `libgit2`
202+
from sources. `libgit2` location is specified by the ``LIBGIT2``
203+
environment variable. `libgit2` should be built in "__cdecl" mode.
204+
The following recipe shows you how to do it from a bash shell:
202205

203206
.. code-block:: sh
204207
205208
$ export LIBGIT2=C:/Dev/libgit2
206-
$ wget https://github.com/libgit2/libgit2/archive/v0.26.0.tar.gz
207-
$ tar xzf v0.26.0.tar.gz
208-
$ cd libgit2-0.26.0/
209+
$ git clone --depth=1 -b maint/v0.26 https://github.com/libgit2/libgit2.git
210+
$ cd libgit2
209211
$ cmake . -DSTDCALL=OFF -DCMAKE_INSTALL_PREFIX=$LIBGIT2 -G "Visual Studio 9 2008"
210212
$ cmake --build . --config release --target install
211213
$ ctest -v
212214
213-
At this point, you're ready to execute the generic pygit2 installation
214-
steps described above.
215+
At this point, you're ready to execute the generic `pygit2`
216+
installation steps described at the start of this page.
215217

216218

217219
Installing on OS X

0 commit comments

Comments
 (0)