openbsd-ports/databases/py-ldap/patches/patch-setup_py
mbalmer fc3bf6e6a8 Updated to version 2.0.6 of python-ldap
Merged the examples subpackage into the main package
Enabled sasl2 support by default

ok alek@
2004-12-18 14:28:35 +00:00

20 lines
534 B
Plaintext

--- setup.py.orig Wed Oct 27 00:29:10 2004
+++ setup.py Mon Nov 22 22:04:13 2004
@@ -27,8 +27,14 @@ f.close()
#-- A class describing the features and requirements of OpenLDAP 2.0
class OpenLDAP2:
- library_dirs = []
- include_dirs = []
+ localbase = os.getenv('LOCALBASE')
+ if localbase == None:
+ print "LOCALBASE not set"
+ sys.exit(1)
+
+ library_dirs = ['%s/lib' % localbase]
+ include_dirs = ['%s/include' % localbase, '%s/include/sasl' % localbase]
+
extra_compile_args = []
extra_link_args = []
extra_objects = []