build: Change bin/default/python -> bin/python symlink to bin/default/python_modules
authorAndrew Bartlett <abartlet@samba.org>
Fri, 1 Mar 2013 23:58:50 +0000 (10:58 +1100)
committerKarolin Seeger <kseeger@samba.org>
Sun, 7 Apr 2013 19:33:59 +0000 (21:33 +0200)
This avoids a collision with the new top level python directory.

Andrew Bartlett
(cherry picked from commit 80fce353e740c793619005ac102ab07fb5e7d280)

buildtools/wafsamba/samba_python.py
buildtools/wafsamba/wafsamba.py

index 6bc32f00b65a6e6443494cffcb232f8ea4fd6270..b2172f71a14e73655093e900fca1c1b2e302e6b2 100644 (file)
@@ -35,7 +35,7 @@ def SAMBA_PYTHON(bld, name,
     source = bld.EXPAND_VARIABLES(source, vars=vars)
 
     if realname is not None:
-        link_name = 'python/%s' % realname
+        link_name = 'python_modules/%s' % realname
     else:
         link_name = None
 
index dcbb04704a75e979aa8203755afbdf1be9aeab5c..f7156ecf7f4e7f486b45bef1de3dff9ee442f5a1 100644 (file)
@@ -64,10 +64,10 @@ def SAMBA_BUILD_ENV(conf):
     # this allows all of the bin/shared and bin/python targets
     # to be expressed in terms of build directory paths
     mkdir_p(os.path.join(conf.blddir, 'default'))
-    for p in ['python','shared', 'modules']:
-        link_target = os.path.join(conf.blddir, 'default/' + p)
+    for (source, target) in [('shared', 'shared'), ('modules', 'modules'), ('python', 'python_modules')]:
+        link_target = os.path.join(conf.blddir, 'default/' + target)
         if not os.path.lexists(link_target):
-            os.symlink('../' + p, link_target)
+            os.symlink('../' + source, link_target)
 
     # get perl to put the blib files in the build directory
     blib_bld = os.path.join(conf.blddir, 'default/pidl/blib')