Skip to content

Commit 40946cd

Browse files
committed
Merge remote-tracking branch 'holgi/master'
2 parents d64dd15 + d4fc701 commit 40946cd

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

docs/install.rst

+24-2
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,32 @@ from a bash shell:
204204
At this point, you're ready to execute the generic pygit2 installation
205205
steps described above.
206206

207+
207208
Installing on OS X
208209
===================================
209210

210211
.. note::
211212

212-
Help wanted to write this section, please make a pull request
213-
https://github.com/libgit2/pygit2/pulls
213+
You will need the `XCode <https://developer.apple.com/xcode/>`_ Developer
214+
Tools from Apple. This free download from the Mac App Store will provide the
215+
clang compiler needed for the installation of pygit2.
216+
217+
This section was tested on OS X 10.9 Mavericks and OS X 10.10 Yosemite with
218+
Python 3.3 in a virtual environment.
219+
220+
The easiest way is to first install libgit2 with the `Homebrew <http://brew.sh>`_
221+
package manager and then use pip3 for pygit2. The following example assumes that
222+
XCode and Hombrew are already installed.
223+
224+
.. code-block:: sh
225+
226+
$ brew update
227+
$ brew install libgit2
228+
$ pip3 install pygit2
229+
230+
If the installation of pygit2 is aborted, you might need to export the libgit2
231+
path before rerunning pip3:
232+
233+
.. code-block:: sh
234+
235+
$ export LIBGIT2=/usr/local/Cellar/libgit2/<libgit2 version>/lib

0 commit comments

Comments
 (0)