Skip to content

Commit 5f4cc86

Browse files
tiranencukou
authored andcommitted
Provide build deps for Alpine and CentOS
Provide build deps for Alpine and CentOS Also updates build deps for Fedora and Debian, and format the shell commands nicely. See: pyldap/pyldap#91 (comment) python-ldap#113 Some changes by Petr Viktorin Signed-off-by: Christian Heimes <cheimes@redhat.com>
1 parent dc7a3fe commit 5f4cc86

File tree

1 file changed

+28
-10
lines changed

1 file changed

+28
-10
lines changed

Doc/installing.rst

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. highlight:: console
2+
13
.. _installing:
24

35
Installing python-ldap
@@ -18,7 +20,7 @@ The preferred point for downloading the “official” source distribution
1820
is the `PyPI repository`_ which supports installing via `pip`_.
1921
For example::
2022

21-
python -m pip install python-ldap
23+
$ python -m pip install python-ldap
2224

2325
.. _PyPI repository: https://pypi.python.org/pypi/python-ldap/
2426
.. _pip: https://pip.pypa.io/en/stable/
@@ -83,8 +85,8 @@ Mac OS X
8385

8486
You can install directly with pip::
8587

86-
xcode-select --install
87-
pip install python-ldap \
88+
$ xcode-select --install
89+
$ pip install python-ldap \
8890
--global-option=build_ext \
8991
--global-option="-I$(xcrun --show-sdk-path)/usr/include/sasl"
9092

@@ -98,8 +100,8 @@ Installing from Source
98100
python-ldap is built and installed using the Python setuptools.
99101
From a source repository::
100102

101-
python -m pip install setuptools
102-
python setup.py install
103+
$ python -m pip install setuptools
104+
$ python setup.py install
103105

104106
If you have more than one Python interpreter installed locally, you should
105107
use the same one you plan to use python-ldap with.
@@ -132,22 +134,38 @@ on the local system when building python-ldap:
132134
.. _Cyrus SASL: https://www.cyrusimap.org/sasl/
133135

134136

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+
135152
Debian
136153
------
137154

138155
Packages for building and testing::
139156

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
143160

144161
Fedora
145162
------
146163

147164
Packages for building and testing::
148165

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
151169

152170
.. note::
153171

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy