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:
@ -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)
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user