Allow using environment variables for package dirs
This commit is contained in:
parent
c2b8573adf
commit
a7b0c6e5da
8
setup.py
8
setup.py
@ -15,6 +15,14 @@ defs = []
|
|||||||
incdirs = []
|
incdirs = []
|
||||||
libdirs = []
|
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
|
# Hack up sys.argv, yay
|
||||||
unprocessed = []
|
unprocessed = []
|
||||||
for arg in sys.argv[1:]:
|
for arg in sys.argv[1:]:
|
||||||
|
Reference in New Issue
Block a user