Allow using environment variables for package dirs

This commit is contained in:
lericson 2010-03-16 23:06:18 +01:00
parent c2b8573adf
commit a7b0c6e5da

View File

@ -15,6 +15,14 @@ defs = []
incdirs = []
libdirs = []
def append_env(L, e):
v = os.environ.get(e)
if v and os.path.exists(v):
L.append(v)
append_env(pkgdirs, "LIBMEMCACHED")
append_env(pkgdirs, "ZLIB")
# Hack up sys.argv, yay
unprocessed = []
for arg in sys.argv[1:]: