File tree 1 file changed +24
-2
lines changed
1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -204,10 +204,32 @@ from a bash shell:
204
204
At this point, you're ready to execute the generic pygit2 installation
205
205
steps described above.
206
206
207
+
207
208
Installing on OS X
208
209
===================================
209
210
210
211
.. note ::
211
212
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
You can’t perform that action at this time.
0 commit comments