[python-ldap] OS X python-ldap woes, patch + request

Miroslaw Baran miroslaw.baran at gmail.com
Thu Jul 30 01:19:18 CEST 2015


Argh.

It seems that the latest openldap formula for homebrew is keg only (not
linked to /usr/local, that is).

Please find attached corrected patch:

--- setup.cfg.old    2015-07-24 16:32:10.000000000 +0100+++ setup.cfg
  2015-07-30 00:12:51.000000000 +0100@@ -1,6 +1,6 @@
 [_ldap]-library_dirs = /usr/lib /usr/lib64 /usr/local/lib
/usr/local/lib64-include_dirs = /usr/include /usr/include/sasl
/usr/local/include /usr/local/include/sasl+library_dirs =
/usr/local/opt/openldap/lib /usr/local/lib /usr/local/lib64 /usr/lib
/usr/lib64+include_dirs = /usr/local/opt/openldap/include
/usr/local/include /usr/local/include/sasl /usr/include
/usr/include/sasl
 defines = HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
 extra_compile_args =
 extra_objects =

Sorry for the inconvenience,
Best regards
– Miroslaw Baran
​



On 24 July 2015 at 16:43, Miroslaw Baran <miroslaw.baran at gmail.com> wrote:

> Hey,
>
> Michael, if that wouldn’t be much of a problem, would you consider
> changing the order of library/include directories in setup.cfg?
>
> It’s the only think that keeps python-ldap from working from scratch with
> homebrew’s openldap package installed. Diff inline and as an attachment for
> your convenience.
>
> Best regards
> – Miroslaw Baran
>
>  --- setup.cfg.old    2015-07-24 16:32:10.000000000 +0100+++ setup.cfg    2015-07-24 16:32:55.000000000 +0100@@ -1,6 +1,6 @@
>  [_ldap]-library_dirs = /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 -include_dirs = /usr/include /usr/include/sasl /usr/local/include /usr/local/include/sasl +library_dirs = /usr/local/lib /usr/local/lib64 /usr/lib /usr/lib64+include_dirs = /usr/local/include /usr/local/include/sasl /usr/include /usr/include/sasl
>  defines = HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
>  extra_compile_args =
>  extra_objects =
>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20150730/cabcadf8/attachment.html>
-------------- next part --------------
--- setup.cfg.old	2015-07-24 16:32:10.000000000 +0100
+++ setup.cfg	2015-07-30 00:12:51.000000000 +0100
@@ -1,6 +1,6 @@
 [_ldap]
-library_dirs = /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 
-include_dirs = /usr/include /usr/include/sasl /usr/local/include /usr/local/include/sasl 
+library_dirs = /usr/local/opt/openldap/lib /usr/local/lib /usr/local/lib64 /usr/lib /usr/lib64
+include_dirs = /usr/local/opt/openldap/include /usr/local/include /usr/local/include/sasl /usr/include /usr/include/sasl 
 defines = HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
 extra_compile_args = 
 extra_objects = 


More information about the python-ldap mailing list