openbsd-ports/databases/py-ldap/patches/patch-setup_py
winiger 0fa9ad5efd update from 2.2.0 to 2.3.1
python2.5.core on exit disappears

ok mbalmer@
2008-01-14 11:11:33 +00:00

33 lines
889 B
Plaintext

--- setup.py.orig Wed Jul 25 00:42:56 2007
+++ setup.py Mon Jan 14 11:12:16 2008
@@ -7,11 +7,7 @@ $Id: setup.py,v 1.61 2007/07/16 10:40:29 stroeder Exp
"""
has_setuptools = False
-try:
- from setuptools import setup, Extension
- has_setuptools = True
-except ImportError:
- from distutils.core import setup, Extension
+from distutils.core import setup, Extension
from ConfigParser import ConfigParser
import sys,os,string,time
@@ -33,8 +29,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 = []