[python-ldap] Installation on FreeBSD via pypi

Roman Bogorodskiy bogorodskiy at gmail.com
Tue Jun 23 13:15:26 CEST 2015


  Michael Ströder wrote:

> Roman Bogorodskiy wrote:
> >   Michael Ströder wrote:
> > 
> >> Roman Bogorodskiy wrote:
> >>> Installation through pip doesn't work out of the box, e.g. running
> >>>
> >>> pip install python-ldap
> >>>
> >>> fails with:
> >>> [..]
> >>> This happens because openldap-client installed from FreeBSD ports installs headers
> >>> into /usr/local/include and libs into /usr/local/lib, however, these are
> >>> not listed in compiler flags.
> >>
> >> Thinking about different platforms the issue is even broader
> >>
> >> How about this one in setup.cfg:
> >>
> >> library_dirs = /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64
> >> include_dirs = /usr/include /usr/include/sasl /usr/local/include
> >> /usr/include/local/sasl
> >        ^^^^^^^^^^^^^
> > 
> > Looks like a typo, needs to be /usr/local/include/sasl I think.
> 
> Thanks. Fixed.
> 
> > It looks like a good set of defaults for library_dirs and include_dirs.
> 
> Will be released with 2.4.20 probably pretty soon.

Thanks, looking forward to it!

By the way, have you had a chance to take a look at the FreeBSD port
link fix on the http://www.python-ldap.org/download.shtml I suggested
in the first email in the thread?

Thanks,

Roman Bogorodskiy


More information about the python-ldap mailing list