get python setup.py to work when called directly

This commit is contained in:
Jean-Francois Dockes 2012-12-31 12:14:05 +01:00
parent b9f889180d
commit b8b4f4cb6d

View file

@ -7,11 +7,11 @@ top = os.path.join('..', '..')
library_dirs = [os.path.join(top, 'lib')]
libraries = ['recoll']
runtime_library_dirs = []
try:
if os.environ.has_key('libdir') and os.environ['libdir'] != "":
runtime_library_dirs = [os.path.join(os.environ['libdir'], 'recoll')]
except:
pass
else:
runtime_library_dirs = [os.path.join('@prefix@', 'lib', 'recoll')]
# Verify that the Recoll library was compiled with the PIC options
localdefs = os.path.join(top, 'mk', 'localdefs')