1
+ .. highlight :: console
2
+
1
3
.. _installing :
2
4
3
5
Installing python-ldap
@@ -18,7 +20,7 @@ The preferred point for downloading the “official” source distribution
18
20
is the `PyPI repository `_ which supports installing via `pip `_.
19
21
For example::
20
22
21
- python -m pip install python-ldap
23
+ $ python -m pip install python-ldap
22
24
23
25
.. _PyPI repository : https://pypi.python.org/pypi/python-ldap/
24
26
.. _pip : https://pip.pypa.io/en/stable/
@@ -83,8 +85,8 @@ Mac OS X
83
85
84
86
You can install directly with pip::
85
87
86
- xcode-select --install
87
- pip install python-ldap \
88
+ $ xcode-select --install
89
+ $ pip install python-ldap \
88
90
--global-option=build_ext \
89
91
--global-option="-I$(xcrun --show-sdk-path)/usr/include/sasl"
90
92
@@ -98,8 +100,8 @@ Installing from Source
98
100
python-ldap is built and installed using the Python setuptools.
99
101
From a source repository::
100
102
101
- python -m pip install setuptools
102
- python setup.py install
103
+ $ python -m pip install setuptools
104
+ $ python setup.py install
103
105
104
106
If you have more than one Python interpreter installed locally, you should
105
107
use the same one you plan to use python-ldap with.
@@ -132,22 +134,38 @@ on the local system when building python-ldap:
132
134
.. _Cyrus SASL : https://www.cyrusimap.org/sasl/
133
135
134
136
137
+ Alpine
138
+ ------
139
+
140
+ Packages for building::
141
+
142
+ # apk add build-base openldap-dev python2-dev python3-dev
143
+
144
+ CentOS
145
+ ------
146
+
147
+ Packages for building::
148
+
149
+ # yum groupinstall "Development tools"
150
+ # yum install openldap-devel python-devel
151
+
135
152
Debian
136
153
------
137
154
138
155
Packages for building and testing::
139
156
140
- apt-get install build-essential python3-dev python2.7-dev libldap2 -dev \
141
- libsasl2-dev slapd ldap-utils python-tox valgrind
142
-
157
+ # apt-get install build-essential python3-dev python2.7-dev \
158
+ libldap2-dev libsasl2-dev slapd ldap-utils python-tox \
159
+ lcov valgrind
143
160
144
161
Fedora
145
162
------
146
163
147
164
Packages for building and testing::
148
165
149
- dnf install "@C Development Tools and Libraries" openldap-devel \
150
- python2-devel python3-devel python3-tox valgrind clang-analyzer
166
+ # dnf install "@C Development Tools and Libraries" openldap-devel \
167
+ python2-devel python3-devel python3-tox \
168
+ lcov clang-analyzer valgrind
151
169
152
170
.. note ::
153
171
0 commit comments