Commit 5316495c authored by Angelo Compagnucci's avatar Angelo Compagnucci Committed by Thomas Petazzoni
Browse files

package/python-web2py: reduce installation size



This commit exclude some useless files from standard installation to
save space on embedded systems.

Signed-off-by: default avatarAngelo Compagnucci <angelo.compagnucci@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 6424c063
......@@ -10,13 +10,33 @@ PYTHON_WEB2PY_LICENSE = LGPL-3.0
PYTHON_WEB2PY_LICENSE_FILES = LICENSE
PYTHON_WEB2PY_DEPENDENCIES = python python-pydal host-python-pydal
PYTHON_WEB2PY_EXCLUSIONS = \
welcome.w2p \
applications/examples \
applications/welcome \
deposit \
docs \
examples \
extras \
handlers \
scripts \
ABOUT \
anyserver.py \
CHANGELOG \
Makefile \
MANIFEST.in \
README.markdown \
setup.py \
tox.ini
define PYTHON_WEB2PY_INSTALL_TARGET_CMDS
$(HOST_DIR)/bin/python2 -c 'import os; \
os.chdir("$(@D)"); \
from gluon.main import save_password; \
save_password($(BR2_PACKAGE_PYTHON_WEB2PY_PASSWORD),8000)'
mkdir -p $(TARGET_DIR)/var/www/web2py
cp -dpfr $(@D)/* $(TARGET_DIR)/var/www/web2py
rsync -a $(@D)/ $(TARGET_DIR)/var/www/web2py/ \
$(addprefix --exclude=,$(PYTHON_WEB2PY_EXCLUSIONS))
endef
define PYTHON_WEB2PY_INSTALL_INIT_SYSV
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment