BuildRoot-python包扩展

2020-05-09  本文已影响0人  Bug2Coder

1. 下载目标包如:peewee

pip download peewee

2. dl目录下放置目标包目录python-peewee,内含有包文件

3. package目录下创建目标包名称目录,内含有编译配置文件

目录结构如下:
--- Config.in
--- python-peewee.hash
--- python-peewee.mk
Config.in说明文件

config BR2_PACKAGE_PYTHON_PEEWEE
    bool "python-peewee"
    help
      Peewee is a simple and small ORM. It has few (but expressive) concepts, making it easy to learn and intuitive to use.

      https://github.com/coleifer/peewee

python-peewee.hash 文件hash值及版本号信息

# md5 from http://pypi.python.org/pypi?:action=show_md5&digest=e849af7f8b7ec75cbc7a53da67c51a51, sha256 locally computed
md5     e65d9a781208de3309878597cda90fdd  peewee-3.13.3.tar.gz
sha256  1269a9736865512bd4056298003aab190957afe07d2616cf22eaf56cb6398369  peewee-3.13.3.tar.gz

python-peewee.mk

################################################################################
#
# python-peewee
#
################################################################################

PYTHON_PEEWEE_VERSION = 3.13.3
PYTHON_PEEWEE_SOURCE = peewee-$(PYTHON_PEEWEE_VERSION).tar.gz
PYTHON_PEEWEE_SITE = https://pypi.python.org/packages/ce/9c/694ce79a9d4a164e109aeba1a40fba23336f3b7554978553e22a5d41d54d
PYTHON_PEEWEE_LICENSE = MIT
PYTHON_PEEWEE_SETUP_TYPE = setuptools
PYTHON_PEEWEE_LICENSE_FILES = LICENSE

$(eval $(python-package))

4. 添加选项

/package/Config.in文件添加模块选项
menu "External python modules" 下添加
source "package/python-peewee/Config.in" 并在配置中选中保存。

5. make

上一篇下一篇

猜你喜欢

热点阅读