1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-28 11:42:03 +03:00

Install standalone python modules (so we can use stock python rather than smbpython).

(This used to be commit bb5c9fc64b)
This commit is contained in:
Jelmer Vernooij
2008-05-10 23:25:50 +02:00
parent 778681e10a
commit 97fbad6480
3 changed files with 11 additions and 8 deletions

View File

@ -71,3 +71,8 @@ else
AC_MSG_ERROR([Python not found. Please install Python 2.x and its development headers/libraries.])
fi
AC_MSG_CHECKING(python library directory)
pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1, 0, '\\${prefix}')"`
AC_MSG_RESULT($pythondir)
AC_SUBST(pythondir)

View File

@ -23,9 +23,3 @@ python_misc_OBJ_FILES = scripting/python/misc_wrap.o
_PY_FILES = $(shell find scripting/python -name "*.py")
$(foreach pyfile, $(_PY_FILES),$(eval $(call python_py_module_template,$(patsubst scripting/python/%,%,$(pyfile)),$(pyfile))))
installpython:: pythonmods
@$(SHELL) $(srcdir)/script/installpython.sh \
$(INSTALLPERMS) \
$(DESTDIR)$(PYTHONDIR) \
scripting/python bin/python