summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/wafsamba.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-01-14 17:20:01 +1100
committerAndrew Tridgell <tridge@samba.org>2011-01-14 08:19:39 +0100
commit46a3588d3fca3a5dd702ce6e9b4a108b884a9cf8 (patch)
treec4209afbd60fad2d4c9f4d0f046541ce5e406484 /buildtools/wafsamba/wafsamba.py
parent0346b5b93c5215ecb8a56c664d99fc700ca23bfb (diff)
downloadsamba-46a3588d3fca3a5dd702ce6e9b4a108b884a9cf8.tar.gz
samba-46a3588d3fca3a5dd702ce6e9b4a108b884a9cf8.tar.bz2
samba-46a3588d3fca3a5dd702ce6e9b4a108b884a9cf8.zip
waf: use PYTHONARCHDIR for installing python shared libs
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jan 14 08:19:40 CET 2011 on sn-devel-104
Diffstat (limited to 'buildtools/wafsamba/wafsamba.py')
-rw-r--r--buildtools/wafsamba/wafsamba.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index 571cd480c7..050777fe5d 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -634,8 +634,8 @@ def install_file(bld, destdir, file, chmod=MODE_644, flat=False,
if python_fixup:
# fixup the python path it will use to find Samba modules
inst_file = file + '.inst'
- if bld.env["PYTHONDIR"] not in sys.path:
- regex = "s|\(sys.path.insert.*\)bin/python\(.*\)$|\\1${PYTHONDIR}\\2|g"
+ if bld.env["PYTHONARCHDIR"] not in sys.path:
+ regex = "s|\(sys.path.insert.*\)bin/python\(.*\)$|\\1${PYTHONARCHDIR}\\2|g"
else:
# Eliminate updating sys.path if the target python dir is already
# in python path.