needed for the external lib loader
return t1 > t2
Build.BuildContext.IS_NEWER = IS_NEWER
return t1 > t2
Build.BuildContext.IS_NEWER = IS_NEWER
+
+def TOUCH_FILE(file):
+ '''touch a file'''
+ f = open(file, 'w')
+ f.close()
+import os, Options
+from samba_utils import TOUCH_FILE, EXPAND_VARIABLES
# work out what python external libraries we need to install
external_libs = {
# work out what python external libraries we need to install
external_libs = {
for e in list:
bld.INSTALL_WILDCARD('${PYTHONDIR}/samba/external', e + '/**/*', flat=False,
exclude='*.pyc', trim_path=os.path.dirname(e))
for e in list:
bld.INSTALL_WILDCARD('${PYTHONDIR}/samba/external', e + '/**/*', flat=False,
exclude='*.pyc', trim_path=os.path.dirname(e))
+
+if Options.is_install:
+ # we need a blank __init__.py in samba/external
+ TOUCH_FILE(bld.EXPAND_VARIABLES('${PYTHONDIR}/samba/external/__init__.py'))