mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 13:16:35 +00:00
samba4: remove compilation of .pyc files
Now that .py files are globally compiled into .pyc files, we can get rid of the samba4 specific logic doing this compilation. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
549bbba67f
commit
cfa73104fa
@ -118,16 +118,6 @@ define SAMBA4_INSTALL_TARGET_CMDS
|
|||||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Samba just installs .py files so the purge causes problems with some tools
|
|
||||||
ifeq ($(BR2_PACKAGE_PYTHON_PYC_ONLY),y)
|
|
||||||
define SAMBA4_BUILD_PYC_FILES
|
|
||||||
PYTHONPATH="$(PYTHON_PATH)" \
|
|
||||||
$(HOST_DIR)/usr/bin/python -c "import compileall; \
|
|
||||||
compileall.compile_dir('$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/samba')"
|
|
||||||
endef
|
|
||||||
SAMBA4_POST_INSTALL_TARGET_HOOKS += SAMBA4_BUILD_PYC_FILES
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_SAMBA4_AD_DC),)
|
ifeq ($(BR2_PACKAGE_SAMBA4_AD_DC),)
|
||||||
SAMBA4_CONF_OPTS += --without-ad-dc
|
SAMBA4_CONF_OPTS += --without-ad-dc
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user