Initial Commit
- initial default booting image
This commit is contained in:
7
package/python-babel/Config.in
Normal file
7
package/python-babel/Config.in
Normal file
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_PYTHON_BABEL
|
||||
bool "python-babel"
|
||||
help
|
||||
A collection of tools for internationalizing Python
|
||||
applications.
|
||||
|
||||
http://babel.pocoo.org/en/latest/
|
||||
5
package/python-babel/python-babel.hash
Normal file
5
package/python-babel/python-babel.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# md5, sha256 from https://pypi.org/pypi/babel/json
|
||||
md5 726d2ed119255a011d248ac0c9caa24a babel-2.17.0.tar.gz
|
||||
sha256 0c54cffb19f690cdcc52a3b50bcbf71e07a808d1c80d549f2459b9d2cf0afb9d babel-2.17.0.tar.gz
|
||||
# Locally computed sha256 checksums
|
||||
sha256 7801a84fe811279cb350bdb4fb18f94c36b18ef813fa6aac043b6c6d39484d0d LICENSE
|
||||
28
package/python-babel/python-babel.mk
Normal file
28
package/python-babel/python-babel.mk
Normal file
@@ -0,0 +1,28 @@
|
||||
################################################################################
|
||||
#
|
||||
# python-babel
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_BABEL_VERSION = 2.17.0
|
||||
PYTHON_BABEL_SOURCE = babel-$(PYTHON_BABEL_VERSION).tar.gz
|
||||
PYTHON_BABEL_SITE = https://files.pythonhosted.org/packages/7d/6b/d52e42361e1aa00709585ecc30b3f9684b3ab62530771402248b1b1d6240
|
||||
PYTHON_BABEL_SETUP_TYPE = setuptools
|
||||
PYTHON_BABEL_LICENSE = BSD-3-Clause
|
||||
PYTHON_BABEL_LICENSE_FILES = LICENSE
|
||||
|
||||
# purge locale data (if enabled), keep special en_US_POSIX data which
|
||||
# is used by default by the python-babel code
|
||||
ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
|
||||
define PYTHON_BABEL_CLEANUP_LOCALE
|
||||
for i in `ls $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/babel/locale-data/*.dat`; \
|
||||
do \
|
||||
i_base=`basename "$$i" .dat`; \
|
||||
echo "$(BR2_ENABLE_LOCALE_WHITELIST) en_US_POSIX" | grep -qw "$$i_base" || rm "$$i"; \
|
||||
done
|
||||
endef
|
||||
PYTHON_BABEL_TARGET_FINALIZE_HOOKS += PYTHON_BABEL_CLEANUP_LOCALE
|
||||
endif
|
||||
|
||||
$(eval $(python-package))
|
||||
$(eval $(host-python-package))
|
||||
Reference in New Issue
Block a user