mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 06:58:39 +01:00
python packages: move all things python under lang/python
I admit this may be be a bit aggressive, but the lang folder is getting cluttered/filled up with Python, PHP, Perl, Ruby, etc. packages. Makes sense to try to group them into per-lang folders. I took the Pythons. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
#
|
||||
# Copyright (C) 2007-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=chardet
|
||||
PKG_VERSION:=2.3.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=LGPL-2.1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://pypi.python.org/packages/source/c/chardet/
|
||||
PKG_MD5SUM:=25274d664ccb5130adae08047416e1a8
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/chardet
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=Universal encoding detector for Python 2 and 3
|
||||
URL:=https://github.com/chardet/chardet
|
||||
DEPENDS:=+python
|
||||
endef
|
||||
|
||||
define Package/chardet/description
|
||||
Universal encoding detector for Python 2 and 3
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/chardet/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/chardetect \
|
||||
$(1)/usr/bin
|
||||
# fix python exec path in scripts
|
||||
sed -i 's/#!.*/#!\/usr\/bin\/python/g' $(1)/usr/bin/chardetect
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,chardet))
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright (C) 2007-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=django-appconf
|
||||
PKG_VERSION:=1.0.2
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/34/b9/d07195652ab494b026f7cb0341dd6e5f2e6e39be177abe05e2cec8bd46e4/
|
||||
PKG_MD5SUM:=cc11511a47088bc56531df67cd5d6261
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/django-appconf
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=A helper class for handling configuration defaults of packaged apps gracefully.
|
||||
URL:=http://django-appconf.readthedocs.org/
|
||||
DEPENDS:=+python +django
|
||||
endef
|
||||
|
||||
define Package/django-appconf/description
|
||||
A helper class for handling configuration defaults of packaged apps gracefully.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/django-appconf/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,django-appconf))
|
||||
@@ -0,0 +1,49 @@
|
||||
#
|
||||
# Copyright (C) 2007-2017 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=django-compressor
|
||||
PKG_VERSION:=2.1.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=MIT
|
||||
|
||||
PKG_SOURCE:=django_compressor-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/38/58/03098a826062b856956c7169a8f778ec2b8e2767ddc63da0629062df5621/
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/django_compressor-$(PKG_VERSION)/
|
||||
PKG_MD5SUM:=5e74141076b70272149ed07e6ce0ea56
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/django-compressor
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=Compresses linked and inline JavaScript or CSS into single cached files.
|
||||
URL:=http://django-compressor.readthedocs.org/
|
||||
DEPENDS:=+python +django
|
||||
endef
|
||||
|
||||
define Package/django-compressor/description
|
||||
Compresses linked and inline JavaScript or CSS into single cached files.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/django-compressor/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,django-compressor))
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright (C) 2007-2017 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=django-constance
|
||||
PKG_VERSION:=1.3.4
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/0c/19/74c6bbf29a7882bab377db7a4ca30b43e09173dc1e6cabe163dc8d6a3931/
|
||||
PKG_MD5SUM:=2e197701ed93082e5fa41df0f4742294
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/django-constance
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=Django live settings with pluggable backends, including Redis.
|
||||
URL:=https://github.com/jazzband/django-constance
|
||||
DEPENDS:=+python +django
|
||||
endef
|
||||
|
||||
define Package/django-constance/description
|
||||
Django live settings with pluggable backends, including Redis.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/django-constance/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,django-constance))
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright (C) 2007-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=django-jsonfield
|
||||
PKG_VERSION:=1.0.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/e4/b2/a079f0a2218e0eb7892edbf404e0bbfbb281a6bbf06966b775f5142ed159/
|
||||
PKG_MD5SUM:=2e5e737a3f93f3b5d7ae6026b1340167
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/django-jsonfield
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=JSONField for django models
|
||||
URL:=https://github.com/bradjasper/django-jsonfield
|
||||
DEPENDS:=+python +django
|
||||
endef
|
||||
|
||||
define Package/django-jsonfield/description
|
||||
JSONField for django models
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/django-jsonfield/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,django-jsonfield))
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright (C) 2007-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=django-picklefield
|
||||
PKG_VERSION:=0.3.2
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=MIT
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://pypi.python.org/packages/source/d/django-picklefield/
|
||||
PKG_MD5SUM:=b2c17ca9e03704ce33890e6aefc7b2e5
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/django-picklefield
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=Pickled object field for Django
|
||||
URL:=http://github.com/gintas/django-picklefield/
|
||||
DEPENDS:=+python +django
|
||||
endef
|
||||
|
||||
define Package/django-picklefield/description
|
||||
Pickled object field for Django
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/django-picklefield/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,django-picklefield))
|
||||
@@ -0,0 +1,49 @@
|
||||
#
|
||||
# Copyright (C) 2007-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=django-postoffice
|
||||
PKG_VERSION:=2.0.8
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=MIT
|
||||
|
||||
PKG_SOURCE:=django-post_office-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/52/25/cc0cfe923f183d7c19b162cac3bf8430ddaed7bad28202b8f93a97d248a4/
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/django-post_office-$(PKG_VERSION)/
|
||||
PKG_MD5SUM:=437bf62cef06381d346ae2bc087c0e3c
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/django-postoffice
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=A Django app to monitor and send mail asynchronously, complete with template support.
|
||||
URL:=https://github.com/ui/django-postoffice
|
||||
DEPENDS:=+python +django +django-jsonfield
|
||||
endef
|
||||
|
||||
define Package/django-postoffice/description
|
||||
A Django app to monitor and send mail asynchronously, complete with template support.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/django-postoffice/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,django-postoffice))
|
||||
@@ -0,0 +1,49 @@
|
||||
#
|
||||
# Copyright (C) 2007-2017 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=django-restframework
|
||||
PKG_VERSION:=3.5.4
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
|
||||
PKG_SOURCE:=djangorestframework-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/e9/24/86dfe19fb82a40a3d7a4c50371a8bd85b9277d3506698bf332a6d41d08f6/
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/djangorestframework-$(PKG_VERSION)
|
||||
PKG_MD5SUM:=979808c387dad8d0ebb6025c39dc7b94
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/django-restframework
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=Web APIs for Django, made easy.
|
||||
URL:=http://www.django-rest-framework.org/
|
||||
DEPENDS:=+python +django
|
||||
endef
|
||||
|
||||
define Package/django-restframework/description
|
||||
Web APIs for Django, made easy.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/django-restframework/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,django-restframework))
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright (C) 2007-2017 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=django-statici18n
|
||||
PKG_VERSION:=1.3.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/86/6b/2c2e86a7e144ba7b064119eaafb2c8c67665c2a0e722f0819daa9657e551/
|
||||
PKG_MD5SUM:=61e22a6f2399f9f829308e4d91b36ee0
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/django-statici18n
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=A Django app that provides helper for generating JavaScript catalog to static files.
|
||||
URL:=http://django-statici18n.readthedocs.org/
|
||||
DEPENDS:=+python +django
|
||||
endef
|
||||
|
||||
define Package/django-statici18n/description
|
||||
A Django app that provides helper for generating JavaScript catalog to static files.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/django-statici18n/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,django-statici18n))
|
||||
@@ -0,0 +1,65 @@
|
||||
#
|
||||
# Copyright (C) 2007-2017 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=django
|
||||
PKG_VERSION:=1.8.17
|
||||
PKG_RELEASE=1
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/django/django.git
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE_VERSION:=d3d12fc11da56e4ea8af37a22a9a0aa6579ab2d5
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/django
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=The web framework for perfectionists with deadlines.
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
URL:=https://www.djangoproject.com/
|
||||
DEPENDS:=+python
|
||||
endef
|
||||
|
||||
define Package/django/description
|
||||
The web framework for perfectionists with deadlines.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/django-admin.py \
|
||||
$(1)/usr/bin
|
||||
endef
|
||||
|
||||
define Package/django/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/django-admin.py \
|
||||
$(1)/usr/bin
|
||||
# fix python exec path
|
||||
sed -i 's/#!.*/#!\/usr\/bin\/python/g' $(1)/usr/bin/django-admin.py
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,django))
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright (C) 2007-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=et_xmlfile
|
||||
PKG_VERSION:=1.0.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=MIT
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://pypi.python.org/packages/source/e/et_xmlfile/
|
||||
PKG_MD5SUM:=f47940fd9d556375420b2e276476cfaf
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/et_xmlfile
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=An implementation of lxml.xmlfile for the standard library
|
||||
URL:=https://bitbucket.org/openpyxl/et_xmlfile
|
||||
DEPENDS:=+python
|
||||
endef
|
||||
|
||||
define Package/et_xmlfile/description
|
||||
An implementation of lxml.xmlfile for the standard library
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/et_xmlfile/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,et_xmlfile))
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright (C) 2007-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=flup
|
||||
PKG_VERSION:=1.0.2
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://pypi.python.org/packages/source/f/flup/
|
||||
PKG_MD5SUM:=24dad7edc5ada31dddd49456ee8d5254
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/flup
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=Random assortment of WSGI servers
|
||||
URL:=http://www.saddi.com/software/flup/
|
||||
DEPENDS:=+python
|
||||
endef
|
||||
|
||||
define Package/flup/description
|
||||
Random assortment of WSGI servers
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/flup/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,flup))
|
||||
@@ -0,0 +1,53 @@
|
||||
#
|
||||
# Copyright (C) 2007-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=gunicorn
|
||||
PKG_VERSION:=19.6.0
|
||||
PKG_RELEASE=1
|
||||
PKG_LICENSE:=MIT
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/84/ce/7ea5396efad1cef682bbc4068e72a0276341d9d9d0f501da609fab9fcb80/
|
||||
PKG_MD5SUM:=338e5e8a83ea0f0625f768dba4597530
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/gunicorn
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=WSGI HTTP Server for UNIX
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
URL:=http://gunicorn.org/
|
||||
DEPENDS:=+python +python-setuptools
|
||||
endef
|
||||
|
||||
define Package/gunicorn/description
|
||||
WSGI HTTP Server for UNIX
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/gunicorn/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gunicorn* \
|
||||
$(1)/usr/bin
|
||||
# fix python exec path in scripts
|
||||
$(SED) 's/#!.*/#!\/usr\/bin\/python/g' $(1)/usr/bin/gunicorn*
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,gunicorn))
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright (C) 2007-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=jdcal
|
||||
PKG_VERSION:=1.2
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://pypi.python.org/packages/source/j/jdcal/
|
||||
PKG_MD5SUM:=ab8d5ba300fd1eb01514f363d19b1eb9
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/jdcal
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=Julian dates from proleptic Gregorian and Julian calendars.
|
||||
URL:=http://github.com/phn/jdcal
|
||||
DEPENDS:=+python
|
||||
endef
|
||||
|
||||
define Package/jdcal/description
|
||||
Julian dates from proleptic Gregorian and Julian calendars.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/jdcal/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,jdcal))
|
||||
@@ -0,0 +1,54 @@
|
||||
#
|
||||
# Copyright (C) 2008-2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=micropython-lib
|
||||
PKG_VERSION=1.8.6-$(PKG_SOURCE_VERSION)
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
|
||||
PKG_LICENSE:=MIT, PSFL
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/micropython/micropython-lib.git
|
||||
PKG_SOURCE_VERSION:=f81e979c56dddb771ad36ec381b7f2c6cd12111f
|
||||
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
|
||||
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/micropython-lib
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=micropython-lib
|
||||
URL:=https://github.com/micropython/micropython-lib
|
||||
DEPENDS:=+micropython
|
||||
endef
|
||||
|
||||
define Package/micropython-lib/description
|
||||
This package contains micropython-lib, a project to develop a non-monolothic
|
||||
standard library for Micro Python. Note that this is a work in progress and
|
||||
several libraries may be missing, incomplete or buggy.
|
||||
endef
|
||||
|
||||
MAKE_FLAGS:=\
|
||||
PREFIX=$(PKG_BUILD_DIR)/_install_tmp/dist \
|
||||
install
|
||||
|
||||
define Package/micropython-lib/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/micropython
|
||||
$(CP) $(PKG_BUILD_DIR)/_install_tmp/dist/* $(1)/usr/lib/micropython
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,micropython-lib))
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# Copyright (C) 2008-2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=micropython
|
||||
PKG_VERSION=1.8.6-$(PKG_SOURCE_VERSION)
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/micropython/micropython.git
|
||||
PKG_SOURCE_VERSION:=5a1d63fc14dae788f705403a43c2d8639b7dd9cd
|
||||
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/micropython
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=Micro Python
|
||||
URL:=http://micropython.org
|
||||
DEPENDS:=+libffi
|
||||
endef
|
||||
|
||||
define Package/micropython/description
|
||||
This package contains Micro Python, a lean and fast implementation of the Python 3.4 programming language
|
||||
that is optimised to run on a microcontroller (and low power computers).
|
||||
endef
|
||||
|
||||
|
||||
MAKE_FLAGS += -C $(PKG_BUILD_DIR)/unix
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/Default,axtls)
|
||||
$(call Build/Compile/Default)
|
||||
|
||||
endef
|
||||
|
||||
define Package/micropython/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/unix/micropython $(1)/usr/bin/micropython
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,micropython))
|
||||
@@ -0,0 +1,13 @@
|
||||
Index: micropython-1.5-20161117-e81a5353cb794b8d6c57317488e5db6a1c524755/unix/Makefile
|
||||
===================================================================
|
||||
--- micropython-1.5-20161117-e81a5353cb794b8d6c57317488e5db6a1c524755.orig/unix/Makefile 2016-11-17 02:43:13.000000000 +0100
|
||||
+++ micropython-1.5-20161117-e81a5353cb794b8d6c57317488e5db6a1c524755/unix/Makefile 2016-11-17 16:49:02.937809018 +0100
|
||||
@@ -21,7 +21,7 @@
|
||||
INC += -I$(BUILD)
|
||||
|
||||
# compiler settings
|
||||
-CWARN = -Wall -Werror
|
||||
+CWARN = -Wall
|
||||
CWARN += -Wpointer-arith -Wuninitialized
|
||||
CFLAGS = $(INC) $(CWARN) -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA)
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright (C) 2007-2017 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=openpyxl
|
||||
PKG_VERSION:=2.4.2
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=MIT
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/56/c6/a2a7c36196e4732acceca093ce5961db907f5a855b557d6a727a7f59b8b4/
|
||||
PKG_MD5SUM:=28b6b5f74f01e6249e8c7f526c57a2e7
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/openpyxl
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=A Python library to read/write Excel 2010 xlsx/xlsm files
|
||||
URL:=https://openpyxl.readthedocs.org/
|
||||
DEPENDS:=+python +django
|
||||
endef
|
||||
|
||||
define Package/openpyxl/description
|
||||
A Python library to read/write Excel 2010 xlsx/xlsm files
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/openpyxl/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,openpyxl))
|
||||
@@ -0,0 +1,53 @@
|
||||
#
|
||||
# Copyright © 1997-2011 by Secret Labs AB
|
||||
# Copyright © 1995-2011 by Fredrik Lundh
|
||||
# Copyright © 2016 by Alex Clark and contributors
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pillow
|
||||
PKG_VERSION:=3.3.1
|
||||
PKG_RELEASE=1
|
||||
PKG_LICENSE:=CUSTOM
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/python-pillow/Pillow.git
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE_VERSION:=aab33141f381d5577cdef9033b7fdff79122a10c
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/pillow
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=The friendly PIL fork
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
URL:=https://python-pillow.org/
|
||||
DEPENDS:=+python +libfreetype +libjpeg +zlib +libtiff
|
||||
endef
|
||||
|
||||
define Package/pillow/description
|
||||
The friendly PIL fork
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/pillow/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
|
||||
$(CP) $(PKG_BUILD_DIR)/LICENSE $(1)$(PYTHON_PKG_DIR)/PIL/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,pillow))
|
||||
@@ -0,0 +1,182 @@
|
||||
diff -rupN pillow-3.3.1.orig/setup.py pillow-3.3.1/setup.py
|
||||
--- pillow-3.3.1.orig/setup.py 2016-08-22 17:45:05.000000000 +0200
|
||||
+++ pillow-3.3.1/setup.py 2016-08-22 18:09:51.947745155 +0200
|
||||
@@ -111,12 +111,12 @@ except (ImportError, OSError):
|
||||
|
||||
NAME = 'Pillow'
|
||||
PILLOW_VERSION = '3.3.1'
|
||||
-JPEG_ROOT = None
|
||||
+JPEG_ROOT = _lib_include(os.environ['STAGING_DIR'] + "/usr")
|
||||
JPEG2K_ROOT = None
|
||||
-ZLIB_ROOT = None
|
||||
+ZLIB_ROOT = _lib_include(os.environ['STAGING_DIR'] + "/usr")
|
||||
IMAGEQUANT_ROOT = None
|
||||
-TIFF_ROOT = None
|
||||
-FREETYPE_ROOT = None
|
||||
+TIFF_ROOT = _lib_include(os.environ['STAGING_DIR'] + "/usr")
|
||||
+FREETYPE_ROOT = _lib_include(os.environ['STAGING_DIR'] + "/usr")
|
||||
LCMS_ROOT = None
|
||||
|
||||
|
||||
@@ -221,161 +221,6 @@ class pil_build_ext(build_ext):
|
||||
_add_directory(include_dirs, os.path.join(prefix, "include"))
|
||||
|
||||
#
|
||||
- # add platform directories
|
||||
-
|
||||
- if self.disable_platform_guessing:
|
||||
- pass
|
||||
-
|
||||
- elif sys.platform == "cygwin":
|
||||
- # pythonX.Y.dll.a is in the /usr/lib/pythonX.Y/config directory
|
||||
- _add_directory(library_dirs,
|
||||
- os.path.join("/usr/lib", "python%s" %
|
||||
- sys.version[:3], "config"))
|
||||
-
|
||||
- elif sys.platform == "darwin":
|
||||
- # attempt to make sure we pick freetype2 over other versions
|
||||
- _add_directory(include_dirs, "/sw/include/freetype2")
|
||||
- _add_directory(include_dirs, "/sw/lib/freetype2/include")
|
||||
- # fink installation directories
|
||||
- _add_directory(library_dirs, "/sw/lib")
|
||||
- _add_directory(include_dirs, "/sw/include")
|
||||
- # darwin ports installation directories
|
||||
- _add_directory(library_dirs, "/opt/local/lib")
|
||||
- _add_directory(include_dirs, "/opt/local/include")
|
||||
-
|
||||
- # if Homebrew is installed, use its lib and include directories
|
||||
- try:
|
||||
- prefix = subprocess.check_output(['brew', '--prefix']).strip(
|
||||
- ).decode('latin1')
|
||||
- except:
|
||||
- # Homebrew not installed
|
||||
- prefix = None
|
||||
-
|
||||
- ft_prefix = None
|
||||
-
|
||||
- if prefix:
|
||||
- # add Homebrew's include and lib directories
|
||||
- _add_directory(library_dirs, os.path.join(prefix, 'lib'))
|
||||
- _add_directory(include_dirs, os.path.join(prefix, 'include'))
|
||||
- ft_prefix = os.path.join(prefix, 'opt', 'freetype')
|
||||
-
|
||||
- if ft_prefix and os.path.isdir(ft_prefix):
|
||||
- # freetype might not be linked into Homebrew's prefix
|
||||
- _add_directory(library_dirs, os.path.join(ft_prefix, 'lib'))
|
||||
- _add_directory(include_dirs,
|
||||
- os.path.join(ft_prefix, 'include'))
|
||||
- else:
|
||||
- # fall back to freetype from XQuartz if
|
||||
- # Homebrew's freetype is missing
|
||||
- _add_directory(library_dirs, "/usr/X11/lib")
|
||||
- _add_directory(include_dirs, "/usr/X11/include")
|
||||
-
|
||||
- elif sys.platform.startswith("linux"):
|
||||
- arch_tp = (plat.processor(), plat.architecture()[0])
|
||||
- if arch_tp == ("x86_64", "32bit"):
|
||||
- # 32-bit build on 64-bit machine.
|
||||
- _add_directory(library_dirs, "/usr/lib/i386-linux-gnu")
|
||||
- else:
|
||||
- for platform_ in arch_tp:
|
||||
-
|
||||
- if not platform_:
|
||||
- continue
|
||||
-
|
||||
- if platform_ in ["x86_64", "64bit"]:
|
||||
- _add_directory(library_dirs, "/lib64")
|
||||
- _add_directory(library_dirs, "/usr/lib64")
|
||||
- _add_directory(library_dirs,
|
||||
- "/usr/lib/x86_64-linux-gnu")
|
||||
- break
|
||||
- elif platform_ in ["i386", "i686", "32bit"]:
|
||||
- _add_directory(library_dirs, "/usr/lib/i386-linux-gnu")
|
||||
- break
|
||||
- elif platform_ in ["aarch64"]:
|
||||
- _add_directory(library_dirs, "/usr/lib64")
|
||||
- _add_directory(library_dirs,
|
||||
- "/usr/lib/aarch64-linux-gnu")
|
||||
- break
|
||||
- elif platform_ in ["arm", "armv7l"]:
|
||||
- _add_directory(library_dirs,
|
||||
- "/usr/lib/arm-linux-gnueabi")
|
||||
- break
|
||||
- elif platform_ in ["ppc64"]:
|
||||
- _add_directory(library_dirs, "/usr/lib64")
|
||||
- _add_directory(library_dirs,
|
||||
- "/usr/lib/ppc64-linux-gnu")
|
||||
- _add_directory(library_dirs,
|
||||
- "/usr/lib/powerpc64-linux-gnu")
|
||||
- break
|
||||
- elif platform_ in ["ppc"]:
|
||||
- _add_directory(library_dirs, "/usr/lib/ppc-linux-gnu")
|
||||
- _add_directory(library_dirs,
|
||||
- "/usr/lib/powerpc-linux-gnu")
|
||||
- break
|
||||
- elif platform_ in ["s390x"]:
|
||||
- _add_directory(library_dirs, "/usr/lib64")
|
||||
- _add_directory(library_dirs,
|
||||
- "/usr/lib/s390x-linux-gnu")
|
||||
- break
|
||||
- elif platform_ in ["s390"]:
|
||||
- _add_directory(library_dirs, "/usr/lib/s390-linux-gnu")
|
||||
- break
|
||||
- else:
|
||||
- raise ValueError(
|
||||
- "Unable to identify Linux platform: `%s`" % platform_)
|
||||
-
|
||||
- # XXX Kludge. Above /\ we brute force support multiarch. Here we
|
||||
- # try Barry's more general approach. Afterward, something should
|
||||
- # work ;-)
|
||||
- self.add_multiarch_paths()
|
||||
-
|
||||
- elif sys.platform.startswith("gnu"):
|
||||
- self.add_multiarch_paths()
|
||||
-
|
||||
- elif sys.platform.startswith("freebsd"):
|
||||
- _add_directory(library_dirs, "/usr/local/lib")
|
||||
- _add_directory(include_dirs, "/usr/local/include")
|
||||
-
|
||||
- elif sys.platform.startswith("netbsd"):
|
||||
- _add_directory(library_dirs, "/usr/pkg/lib")
|
||||
- _add_directory(include_dirs, "/usr/pkg/include")
|
||||
-
|
||||
- elif sys.platform.startswith("sunos5"):
|
||||
- _add_directory(library_dirs, "/opt/local/lib")
|
||||
- _add_directory(include_dirs, "/opt/local/include")
|
||||
-
|
||||
- # FIXME: check /opt/stuff directories here?
|
||||
-
|
||||
- # standard locations
|
||||
- if not self.disable_platform_guessing:
|
||||
- _add_directory(library_dirs, "/usr/local/lib")
|
||||
- _add_directory(include_dirs, "/usr/local/include")
|
||||
-
|
||||
- _add_directory(library_dirs, "/usr/lib")
|
||||
- _add_directory(include_dirs, "/usr/include")
|
||||
- # alpine, at least
|
||||
- _add_directory(library_dirs, "/lib")
|
||||
-
|
||||
- # on Windows, look for the OpenJPEG libraries in the location that
|
||||
- # the official installer puts them
|
||||
- if sys.platform == "win32":
|
||||
- program_files = os.environ.get('ProgramFiles', '')
|
||||
- best_version = (0, 0)
|
||||
- best_path = None
|
||||
- for name in os.listdir(program_files):
|
||||
- if name.startswith('OpenJPEG '):
|
||||
- version = tuple([int(x) for x in name[9:].strip().split(
|
||||
- '.')])
|
||||
- if version > best_version:
|
||||
- best_version = version
|
||||
- best_path = os.path.join(program_files, name)
|
||||
-
|
||||
- if best_path:
|
||||
- _dbg('Adding %s to search list', best_path)
|
||||
- _add_directory(library_dirs, os.path.join(best_path, 'lib'))
|
||||
- _add_directory(include_dirs,
|
||||
- os.path.join(best_path, 'include'))
|
||||
-
|
||||
- #
|
||||
# insert new dirs *before* default libs, to avoid conflicts
|
||||
# between Python PYD stub libs and real libraries
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
#
|
||||
# Copyright (C) 2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=attrs
|
||||
PKG_VERSION:=16.2.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/6b/71/1682316894ed80b362b9102e7a10997136d8dc1213c36a9f0515c451373a
|
||||
PKG_MD5SUM:=442b73d049af046ced010671b7bfd0e9
|
||||
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-attrs
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-attrs
|
||||
URL:=https://attrs.readthedocs.org/
|
||||
DEPENDS:=+python-light
|
||||
endef
|
||||
|
||||
define Package/python-attrs/description
|
||||
attrs is an MIT-licensed Python package with class decorators that ease
|
||||
the chores of implementing the most common attribute-related object
|
||||
protocols.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-attrs))
|
||||
$(eval $(call BuildPackage,python-attrs))
|
||||
@@ -0,0 +1,96 @@
|
||||
#
|
||||
# Copyright (C) 2015-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=cffi
|
||||
PKG_VERSION:=1.8.3
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/0a/f3/686af8873b70028fccf67b15c78fd4e4667a3da995007afc71e786d61b0a
|
||||
PKG_HASH:=c321bd46faa7847261b89c0469569530cad5a41976bb6dba8202c0159f476568
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
|
||||
|
||||
HOST_BUILD_DEPENDS:=libffi/host python-pycparser/host
|
||||
ifdef CONFIG_PACKAGE_python-cffi
|
||||
HOST_BUILD_DEPENDS+=python/host
|
||||
endif
|
||||
ifdef CONFIG_PACKAGE_python3-cffi
|
||||
HOST_BUILD_DEPENDS+=python3/host
|
||||
endif
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
$(call include_mk, python3-package.mk)
|
||||
|
||||
define Package/python-cffi/Default
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
URL:=http://cffi.readthedocs.org/
|
||||
DEPENDS:=+libffi
|
||||
endef
|
||||
|
||||
define Package/python-cffi
|
||||
$(call Package/python-cffi/Default)
|
||||
TITLE:=python-cffi
|
||||
DEPENDS+=+python-light +python-pycparser
|
||||
VARIANT:=python
|
||||
endef
|
||||
|
||||
define Package/python3-cffi
|
||||
$(call Package/python-cffi/Default)
|
||||
TITLE:=python3-cffi
|
||||
DEPENDS+=+python3-light +python3-pycparser
|
||||
VARIANT:=python3
|
||||
endef
|
||||
|
||||
define Package/python-cffi/description
|
||||
Foreign Function Interface for Python calling C code.
|
||||
endef
|
||||
|
||||
define Package/python3-cffi/description
|
||||
$(call Package/python-cffi/description)
|
||||
.
|
||||
(Variant for Python3)
|
||||
endef
|
||||
|
||||
ifdef CONFIG_PACKAGE_python-cffi
|
||||
define Host/Compile/python-cffi
|
||||
$(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
|
||||
endef
|
||||
endif
|
||||
|
||||
ifdef CONFIG_PACKAGE_python3-cffi
|
||||
define Host/Compile/python3-cffi
|
||||
$(call Build/Compile/HostPy3Mod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
|
||||
endef
|
||||
endif
|
||||
|
||||
define Host/Compile
|
||||
$(call Host/Compile/python-cffi)
|
||||
$(call Host/Compile/python3-cffi)
|
||||
endef
|
||||
|
||||
define Host/Install
|
||||
endef
|
||||
|
||||
$(eval $(call HostBuild))
|
||||
|
||||
$(eval $(call PyPackage,python-cffi))
|
||||
$(eval $(call BuildPackage,python-cffi))
|
||||
|
||||
$(eval $(call Py3Package,python3-cffi))
|
||||
$(eval $(call BuildPackage,python3-cffi))
|
||||
@@ -0,0 +1,50 @@
|
||||
#
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-crcmod
|
||||
PKG_VERSION:=1.7
|
||||
PKG_RELEASE:=1
|
||||
PKG_MAINTAINER:=Micke Prag <micke.prag@telldus.se>
|
||||
PKG_LICENSE:=MIT
|
||||
|
||||
PKG_SOURCE:=crcmod-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://pypi.python.org/packages/source/c/crcmod/
|
||||
PKG_MD5SUM:=2d5b92117d958dcead94f9e17f54cd32
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/crcmod-$(PKG_VERSION)
|
||||
PKG_BUILD_DEPENDS:=python
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-crcmod
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=python-crcmod
|
||||
URL:=http://crcmod.sourceforge.net/
|
||||
DEPENDS:=+python-light
|
||||
endef
|
||||
|
||||
define Package/python-crcmod/description
|
||||
The software in this package is a Python module for generating objects that compute the Cyclic Redundancy Check (CRC). There is no attempt in this package to explain how the CRC works. There are a number of resources on the web that give a good explanation of the algorithms. Just do a Google search for "crc calculation" and browse till you find what you need. Another resource can be found in chapter 20 of the book "Numerical Recipes in C" by Press et. al.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
|
||||
endef
|
||||
|
||||
define Package/python-crcmod/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,python-crcmod))
|
||||
@@ -0,0 +1,54 @@
|
||||
#
|
||||
# Copyright (C) 2009-2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pycrypto
|
||||
PKG_VERSION:=2.6.1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/
|
||||
PKG_MD5SUM:=55a61a054aa66812daf5161a0d5d7eda
|
||||
|
||||
PKG_LICENSE:=Public Domain
|
||||
PKG_LICENSE_FILES:=COPYRIGHT
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-crypto
|
||||
SECTION:=lang-python
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-crypto
|
||||
URL:=http://www.pycrypto.org/
|
||||
DEPENDS:=+python +libgmp
|
||||
endef
|
||||
|
||||
define Package/python-crypto/description
|
||||
A collection of both secure hash functions (such as MD5 and SHA),
|
||||
and various encryption algorithms (AES, DES, IDEA, RSA, ElGamal, etc.).
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,\
|
||||
install --prefix=/usr --root=$(PKG_INSTALL_DIR),\
|
||||
CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)" \
|
||||
)
|
||||
endef
|
||||
|
||||
define Package/python-crypto/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)/
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-crypto))
|
||||
$(eval $(call BuildPackage,python-crypto))
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -370,7 +370,7 @@ kw = {'name':"pycrypto",
|
||||
'ext_modules': plat_ext + [
|
||||
# _fastmath (uses GNU mp library)
|
||||
Extension("Crypto.PublicKey._fastmath",
|
||||
- include_dirs=['src/','/usr/include/'],
|
||||
+ include_dirs=['src/'],
|
||||
libraries=['gmp'],
|
||||
sources=["src/_fastmath.c"]),
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -100,6 +100,10 @@
|
||||
w(kwd.get("end", "\n"))
|
||||
|
||||
def endianness_macro():
|
||||
+ if os.environ["CONFIG_BIG_ENDIAN"] == "y":
|
||||
+ return ('PCT_BIG_ENDIAN', 1)
|
||||
+ else:
|
||||
+ return ('PCT_LITTLE_ENDIAN', 1)
|
||||
s = struct.pack("@I", 0x33221100)
|
||||
if s == "\x00\x11\x22\x33".encode(): # little endian
|
||||
return ('PCT_LITTLE_ENDIAN', 1)
|
||||
@@ -0,0 +1,53 @@
|
||||
#
|
||||
# Copyright (C) 2015-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=cryptography
|
||||
PKG_VERSION:=1.5.1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/21/e1/37fc14f9d77924e84ba0dcb88eb8352db914583af229287c6c965d66ba0d
|
||||
PKG_MD5SUM:=66a3e01f5f436d2413ef47b7e6bb7729
|
||||
|
||||
PKG_BUILD_DEPENDS:=python-cffi/host
|
||||
|
||||
PKG_LICENSE:=Apache-2.0 BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE.APACHE LICENSE.BSD
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-cryptography
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-cryptography
|
||||
URL:=https://github.com/pyca/cryptography
|
||||
DEPENDS:=+libopenssl +python +python-cffi +python-enum34 +python-idna +python-ipaddress +python-pyasn1 +python-six +python-setuptools
|
||||
endef
|
||||
|
||||
define Package/python-cryptography/description
|
||||
cryptography is a package which provides cryptographic recipes and
|
||||
primitives to Python developers. Our goal is for it to be your "cryptographic
|
||||
standard library". It supports Python 2.6-2.7, Python 3.3+, and PyPy 2.6+.
|
||||
endef
|
||||
|
||||
define PyPackage/python-cryptography/filespec
|
||||
+|$(PYTHON_PKG_DIR)
|
||||
-|$(PYTHON_PKG_DIR)/cryptography/hazmat/backends/commoncrypto
|
||||
-|$(PYTHON_PKG_DIR)/cryptography/hazmat/bindings/commoncrypto
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-cryptography))
|
||||
$(eval $(call BuildPackage,python-cryptography))
|
||||
@@ -0,0 +1,12 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index b5c05df..a777dd7 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -266,6 +266,7 @@ class DummyPyTest(test):
|
||||
with open(os.path.join(base_dir, "README.rst")) as f:
|
||||
long_description = f.read()
|
||||
|
||||
+setup_requirements=[]
|
||||
|
||||
setup(
|
||||
name=about["__title__"],
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright (C) 2007-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-dateutil
|
||||
PKG_VERSION:=2.6.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=BSD-2-Clause
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/51/fc/39a3fbde6864942e8bb24c93663734b74e281b984d1b8c4f95d64b0c21f6/
|
||||
PKG_MD5SUM:=6e38f91e8c94c15a79ce22768dfeca87
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-dateutil
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=Extensions to the standard Python datetime module
|
||||
URL:=https://dateutil.readthedocs.org/
|
||||
DEPENDS:=+python +python-six
|
||||
endef
|
||||
|
||||
define Package/python-dateutil/description
|
||||
Extensions to the standard Python datetime module
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/python-dateutil/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,python-dateutil))
|
||||
@@ -0,0 +1,44 @@
|
||||
#
|
||||
# Copyright (C) 2014 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-dns
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=1.15.0
|
||||
PKG_SOURCE_URL:=http://www.dnspython.org/kits/$(PKG_VERSION)
|
||||
PKG_MD5SUM:=63a679089822fb86127867c315286dc5
|
||||
PKG_SOURCE:=dnspython-$(PKG_VERSION).tar.gz
|
||||
PKG_MAINTAINER:=Denis Shulyaka <Shulyaka@gmail.com>
|
||||
PKG_LICENSE:=ISC
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/dnspython-$(PKG_VERSION)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-dns
|
||||
SECTION:=language-python
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=dnspython
|
||||
URL:=http://www.dnspython.org/
|
||||
DEPENDS:=+python
|
||||
endef
|
||||
|
||||
define Package/python-dns/description
|
||||
dnspython is a DNS toolkit for Python. It supports almost all record types. It can be used for queries, zone transfers, and dynamic updates. It supports TSIG authenticated messages and EDNS0.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,\
|
||||
install --prefix=/usr --root="$(PKG_INSTALL_DIR)" \
|
||||
)
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-dns))
|
||||
$(eval $(call BuildPackage,python-dns))
|
||||
@@ -0,0 +1,55 @@
|
||||
#
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-egenix-mx-base
|
||||
PKG_VERSION:=3.2.8
|
||||
PKG_RELEASE:=1
|
||||
PKG_MAINTAINER:=Dmitry Trefilov <the-alien@live.ru>
|
||||
PKG_LICENSE:=eGenix.com Public License 1.1.0
|
||||
PKG_LICENSE_FILES:=LICENSE COPYRIGHT
|
||||
|
||||
PKG_SOURCE:=egenix-mx-base-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://downloads.egenix.com/python/
|
||||
PKG_MD5SUM:=9d9d3a25f9dc051a15e97f452413423b
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/egenix-mx-base-$(PKG_VERSION)
|
||||
PKG_BUILD_DEPENDS:=python
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-egenix-mx-base
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
DEPENDS:=+USE_EGLIBC:librt +USE_UCLIBC:librt +python
|
||||
TITLE:=Egenix mxBase
|
||||
URL:=http://www.egenix.com/products/python/mxBase/
|
||||
endef
|
||||
|
||||
define Package/python-egenix-mx-base/description
|
||||
The eGenix.com mx Base Distribution for Python is a collection
|
||||
of professional quality software tools which enhance Python's
|
||||
usability in many important areas such as fast text searching,
|
||||
date/time processing and high speed data types.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
|
||||
endef
|
||||
|
||||
define PyPackage/python-egenix-mx-base/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-egenix-mx-base))
|
||||
$(eval $(call BuildPackage,python-egenix-mx-base))
|
||||
@@ -0,0 +1,51 @@
|
||||
#
|
||||
# Copyright (C) 2015-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=enum34
|
||||
PKG_VERSION:=1.1.6
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/bf/3e/31d502c25302814a7c2f1d3959d2a3b3f78e509002ba91aea64993936876
|
||||
PKG_MD5SUM:=5f13a0841a61f7fc295c514490d120d0
|
||||
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=enum/LICENSE
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-enum34
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-enum34
|
||||
URL:=https://pypi.python.org/pypi/enum34/
|
||||
DEPENDS:=+python-light
|
||||
endef
|
||||
|
||||
define Package/python-enum34/description
|
||||
enum34 is the new Python stdlib enum module available in Python 3.4
|
||||
backported for previous versions of Python from 2.4 to 3.3.
|
||||
endef
|
||||
|
||||
define PyPackage/python-enum34/filespec
|
||||
+|$(PYTHON_PKG_DIR)
|
||||
-|$(PYTHON_PKG_DIR)/enum/test.py
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-enum34))
|
||||
$(eval $(call BuildPackage,python-enum34))
|
||||
@@ -0,0 +1,19 @@
|
||||
diff -r f24487b45cd0 setup.py
|
||||
--- a/setup.py Sun May 15 20:28:23 2016 -0700
|
||||
+++ b/setup.py Wed Jul 27 22:49:13 2016 +0800
|
||||
@@ -63,15 +63,6 @@
|
||||
version='1.1.6',
|
||||
url='https://bitbucket.org/stoneleaf/enum34',
|
||||
packages=['enum'],
|
||||
- package_data={
|
||||
- 'enum' : [
|
||||
- 'LICENSE',
|
||||
- 'README',
|
||||
- 'doc/enum.rst',
|
||||
- 'doc/enum.pdf',
|
||||
- 'test.py',
|
||||
- ]
|
||||
- },
|
||||
license='BSD License',
|
||||
description='Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4',
|
||||
long_description=long_desc,
|
||||
@@ -0,0 +1,49 @@
|
||||
#
|
||||
# Copyright (C) 2015-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=gmpy2
|
||||
PKG_VERSION:=2.0.8
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/90/f4/9a2e384b325b69bc5827b9a6510a8fb4a51698c915c06a3f25a86458892a
|
||||
PKG_MD5SUM:=56d40bddcf8f22be0a36d60f764f3241
|
||||
|
||||
PKG_LICENSE:=LGPL-3.0+
|
||||
PKG_LICENSE_FILES:=COPYING.LESSER
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-gmpy2
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-gmpy2
|
||||
URL:=http://code.google.com/p/gmpy/
|
||||
DEPENDS:=+libgmp +python-light
|
||||
endef
|
||||
|
||||
define Package/python-gmpy2/description
|
||||
gmpy2 is a C-coded Python extension module that supports multiple-precision
|
||||
arithmetic. gmpy2 is the successor to the original gmpy module. The gmpy module
|
||||
only supported the GMP multiple-precision library. gmpy2 adds support for the
|
||||
MPFR (correctly rounded real floating-point arithmetic) and MPC (correctly
|
||||
rounded complex floating-point arithmetic) libraries. gmpy2 also updates the
|
||||
API and naming conventions to be more consistent and support the additional
|
||||
functionality.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" --nompfr)
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-gmpy2))
|
||||
$(eval $(call BuildPackage,python-gmpy2))
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright (C) 2015-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=idna
|
||||
PKG_VERSION:=2.1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/i/idna
|
||||
PKG_MD5SUM:=f6473caa9c5e0cc1ad3fd5d04c3c114b
|
||||
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE.rst
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-idna
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-idna
|
||||
URL:=https://github.com/kjd/idna
|
||||
DEPENDS:=+python-light
|
||||
endef
|
||||
|
||||
define Package/python-idna/description
|
||||
A library to support the Internationalised Domain Names in Applications
|
||||
(IDNA) protocol as specified in RFC 5891. This version of the protocol
|
||||
is often referred to as "IDNA2008" and can produce different results
|
||||
from the earlier standard from 2003.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-idna))
|
||||
$(eval $(call BuildPackage,python-idna))
|
||||
@@ -0,0 +1,44 @@
|
||||
#
|
||||
# Copyright (C) 2015-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ipaddress
|
||||
PKG_VERSION:=1.0.17
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/bb/26/3b64955ff73f9e3155079b9ed31812afdfa5333b5c76387454d651ef593a
|
||||
PKG_MD5SUM:=8bbf0326719fafb1f453921ef96729fe
|
||||
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
PKG_LICENSE:=Python-2.0
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-ipaddress
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-ipaddress
|
||||
URL:=https://github.com/phihag/ipaddress
|
||||
DEPENDS:=+python-light
|
||||
endef
|
||||
|
||||
define Package/python-ipaddress/description
|
||||
Python 3.3+'s ipaddress for Python 2.6, 2.7, 3.2.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-ipaddress))
|
||||
$(eval $(call BuildPackage,python-ipaddress))
|
||||
@@ -0,0 +1,59 @@
|
||||
#
|
||||
# Copyright (C) 2016-2017 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-ldap
|
||||
PKG_VERSION:=2.4.32
|
||||
PKG_RELEASE:=1
|
||||
PKG_MAINTAINER:=Dmitry Trefilov <the-alien@live.ru>
|
||||
PKG_LICENSE:=Python-style
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/67/d9/fa0ea70d1792875745116ad62ac8d4bcb07550b15cded591bb57df6a6d9a
|
||||
PKG_MD5SUM:=7c46c8a04acc227a778c7900c87cdfc7
|
||||
|
||||
PKG_BUILD_DEPENDS:=python libopenldap
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-ldap
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
DEPENDS:=+libopenldap +python
|
||||
TITLE:=Python modules for implementing LDAP clients
|
||||
URL:=http://python-ldap.org/
|
||||
endef
|
||||
|
||||
define Package/python-ldap/description
|
||||
python-ldap provides an object-oriented API to access LDAP directory
|
||||
servers from Python programs. Mainly it wraps the OpenLDAP 2.x libs
|
||||
for that purpose. Additionally the package contains modules for
|
||||
other LDAP-related stuff (e.g. processing LDIF, LDAPURLs, LDAPv3
|
||||
schema, LDAPv3 extended operations and controls, etc.).
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,build_ext \
|
||||
--include-dirs="$(STAGING_DIR)/usr/include:$(STAGING_DIR)/usr/include/sasl" \
|
||||
--library-dirs="$(STAGING_DIR)/usr/lib:$(STAGING_DIR)/usr/lib/sasl2" \
|
||||
build_py \
|
||||
install --prefix="$(PKG_INSTALL_DIR)/usr")
|
||||
endef
|
||||
|
||||
define PyPackage/python-ldap/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-ldap))
|
||||
$(eval $(call BuildPackage,python-ldap))
|
||||
@@ -0,0 +1,16 @@
|
||||
From: Dmitrij Trefilov <the-alien@live.ru>
|
||||
|
||||
Subject: [PATCH] lang: removed hardcoded include and library directories from setup.cfg
|
||||
Signed-off-by: Dmitrij Trefilov <the-alien@live.ru>
|
||||
---
|
||||
--- a/setup.cfg
|
||||
+++ b/setup.cfg
|
||||
@@ -1,6 +1,6 @@
|
||||
[_ldap]
|
||||
-library_dirs = /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64
|
||||
-include_dirs = /usr/include /usr/include/sasl /usr/local/include /usr/local/include/sasl
|
||||
+library_dirs =
|
||||
+include_dirs =
|
||||
defines = HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
|
||||
extra_compile_args =
|
||||
extra_objects =
|
||||
@@ -0,0 +1,50 @@
|
||||
#
|
||||
# Copyright (C) 2007-2014 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=MySQL-python
|
||||
PKG_VERSION:=1.2.5
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/M/MySQL-python/
|
||||
PKG_MD5SUM:=654f75b302db6ed8dc5a898c625e030c
|
||||
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools libmysqlclient
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-mysql
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=MySQL database adapter for Python
|
||||
URL:=https://pypi.python.org/pypi/MySQL-python
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
DEPENDS:=+python +libmysqlclient
|
||||
endef
|
||||
|
||||
define Package/python-mysql/description
|
||||
MySQLdb is an thread-compatible interface to the popular MySQL database
|
||||
server that provides the Python database API.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/python-mysql/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,python-mysql))
|
||||
@@ -0,0 +1,11 @@
|
||||
--- MySQL-python-1.2.2/site_orig.cfg 2007-08-15 12:58:40.000000000 +0200
|
||||
+++ MySQL-python-1.2.2/site.cfg 2007-08-15 12:58:49.000000000 +0200
|
||||
@@ -4,7 +4,7 @@
|
||||
# static: link against a static library (probably required for embedded)
|
||||
|
||||
embedded = False
|
||||
-threadsafe = True
|
||||
+threadsafe = False
|
||||
static = False
|
||||
|
||||
# The path to mysql_config.
|
||||
@@ -0,0 +1,130 @@
|
||||
#
|
||||
# Copyright (C) 2016 Yousong Zhou <yszhou4tech@gmail.com>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-packages
|
||||
PKG_VERSION:=1.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
|
||||
|
||||
#
|
||||
# NOTE: move the host module installation to Host/Compile when
|
||||
# HOST_CONFIG_DEPENDS is supported
|
||||
#
|
||||
# NOTE: PKG_CONFIG_DEPENDS cannot correctly track changes of string type config
|
||||
# options, so you may want to do manual cleanup on config change.
|
||||
#
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
CONFIG_PACKAGE_python-packages-list-host \
|
||||
CONFIG_PACKAGE_python-packages-list \
|
||||
CONFIG_PACKAGE_python-packages-list-cleanup \
|
||||
CONFIG_PACKAGE_python-packages-envs \
|
||||
CONFIG_PACKAGE_python-packages-extra-deps \
|
||||
CONFIG_PACKAGE_python-packages-index-url \
|
||||
CONFIG_PACKAGE_python-packages-pip-opts \
|
||||
|
||||
PKG_BUILD_DEPENDS:=python python/host
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-packages
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=A dummy package for packaging python modules with pip
|
||||
DEPENDS:=@DEVEL +python
|
||||
endef
|
||||
|
||||
define Package/python-packages/config
|
||||
if PACKAGE_python-packages
|
||||
config PACKAGE_python-packages-list-host
|
||||
string "List of python packages to install on host"
|
||||
config PACKAGE_python-packages-list
|
||||
string "List of python packages to install on target"
|
||||
config PACKAGE_python-packages-list-cleanup
|
||||
string "List of python packages to cleanup to avoid clash with existing packages"
|
||||
config PACKAGE_python-packages-envs
|
||||
string "Extra environment variables to pass on to pip and its children on target build"
|
||||
config PACKAGE_python-packages-extra-deps
|
||||
string "List of deps fulfilled but not tracked by the build system"
|
||||
config PACKAGE_python-packages-index-url
|
||||
string "Index URL passed to pip with --index-url"
|
||||
config PACKAGE_python-packages-pip-opts
|
||||
string "Additional arguments to pip command line"
|
||||
endif
|
||||
endef
|
||||
|
||||
CONFIG_PACKAGE_python-packages-list-host:=$(call qstrip,$(CONFIG_PACKAGE_python-packages-list-host))
|
||||
CONFIG_PACKAGE_python-packages-list:=$(call qstrip,$(CONFIG_PACKAGE_python-packages-list))
|
||||
CONFIG_PACKAGE_python-packages-list-cleanup:=$(call qstrip,$(CONFIG_PACKAGE_python-packages-list-cleanup))
|
||||
CONFIG_PACKAGE_python-packages-envs:=$(call qstrip,$(CONFIG_PACKAGE_python-packages-envs))
|
||||
CONFIG_PACKAGE_python-packages-extra-deps:=$(call qstrip,$(CONFIG_PACKAGE_python-packages-extra-deps))
|
||||
CONFIG_PACKAGE_python-packages-pip-opts:=$(call qstrip,$(CONFIG_PACKAGE_python-packages-pip-opts))
|
||||
|
||||
HOST_PYTHON_PIP:=$(STAGING_DIR_HOSTPKG)/bin/pip$(PYTHON_VERSION)
|
||||
|
||||
decr=$(word $(1),0 1 2 3 4 5 6 7 8 9 10)
|
||||
recur=$(if $(subst 0,,$(2)),$(call recur,$(1),$(call decr,$(2)),$(call $(1)$(2),$(3))),$(3))
|
||||
_req2dir1=$(subst >,gt,$(1))
|
||||
_req2dir2=$(subst <,lt,$(1))
|
||||
_req2dir3=$(subst >=,geq,$(1))
|
||||
_req2dir4=$(subst <=,leq,$(1))
|
||||
_req2dir5=$(subst ://,:::,$(1))
|
||||
_req2dir6=$(subst *,_,$(1))
|
||||
_req2dir7=$(subst ?,_,$(1))
|
||||
req2dir=$(call recur,_req2dir,7,$(1))
|
||||
|
||||
# --ignore-installed, it may happen that host pip will ignore target install if
|
||||
# it was already installed as host module, e.g. cffi deps of cryptograph
|
||||
HOST_PYTHON_PIP_INSTALL=$(HOST_PYTHON_PIP) install \
|
||||
--root=$(1) \
|
||||
--prefix=$(2) \
|
||||
--ignore-installed \
|
||||
--no-compile \
|
||||
$(if $(CONFIG_PACKAGE_python-packages-index-url), --index-url $(CONFIG_PACKAGE_python-packages-index-url)) \
|
||||
$(if $(CONFIG_PACKAGE_python-packages-pip-opts), $(CONFIG_PACKAGE_python-packages-pip-opts)) \
|
||||
|
||||
HOST_PYTHON_PIP_INSTALL_HOST:=$(call HOST_PYTHON_PIP_INSTALL,$(STAGING_DIR_HOSTPKG),"")
|
||||
HOST_PYTHON_PIP_INSTALL_TARGET=$(call HOST_PYTHON_PIP_INSTALL,$(PKG_INSTALL_DIR)/$(call req2dir,$(pkg)),/usr)
|
||||
HOST_PYTHON_PIP_INSTALL_CLEANUP:=$(call HOST_PYTHON_PIP_INSTALL,$(PKG_INSTALL_DIR)/_cleanup,/usr)
|
||||
|
||||
define Build/Compile
|
||||
$(foreach pkg,$(CONFIG_PACKAGE_python-packages-list-host),
|
||||
$(call Build/Compile/HostPyRunHost,,$(HOST_PYTHON_PIP_INSTALL_HOST) $(pkg))
|
||||
)
|
||||
$(foreach pkg,$(CONFIG_PACKAGE_python-packages-list),
|
||||
$(call Build/Compile/HostPyRunTarget,,$(call HOST_PYTHON_PIP_INSTALL_TARGET,$(pkg)) $(pkg),$(CONFIG_PACKAGE_python-packages-envs))
|
||||
)
|
||||
$(foreach pkg,$(CONFIG_PACKAGE_python-packages-list-cleanup),
|
||||
$(call Build/Compile/HostPyRunTarget,,$(HOST_PYTHON_PIP_INSTALL_CLEANUP) $(pkg),$(CONFIG_PACKAGE_python-packages-envs))
|
||||
)
|
||||
endef
|
||||
|
||||
define Package/python-packages/install
|
||||
$(foreach pkg,$(CONFIG_PACKAGE_python-packages-list),
|
||||
$(CP) "$(PKG_INSTALL_DIR)/$(call req2dir,$(pkg))"/* $(1)
|
||||
)
|
||||
|
||||
find "$(PKG_INSTALL_DIR)/_cleanup" -mindepth 1 -depth | while read sf; do \
|
||||
tf="$$$${sf#$(PKG_INSTALL_DIR)/_cleanup/}"; \
|
||||
tf="$(1)/$$$$tf"; \
|
||||
if [ -f "$$$$tf" -o -L "$$$$tf" ]; then \
|
||||
rm -vf "$$$$tf"; \
|
||||
elif [ -d "$$$$tf" ]; then \
|
||||
rmdir -v -p "$$$$tf" || true; \
|
||||
fi \
|
||||
done
|
||||
endef
|
||||
|
||||
define Package/python-packages/extra_provides
|
||||
echo $(CONFIG_PACKAGE_python-packages-extra-deps) | tr ' ' '\n'
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,python-packages))
|
||||
@@ -0,0 +1,72 @@
|
||||
This package allows users to package python modules without creating package
|
||||
Makefiles for each individual module and their dependencies. It provides a
|
||||
way making packaging python packages faster and may also facilitate the process
|
||||
of developing Makefiles for new python packages
|
||||
|
||||
This is a raw DEVEL only package. Using it may entail a lot of implementation
|
||||
details and you may need to resolve target dependencies and package details on
|
||||
your own
|
||||
|
||||
- Third party python packages may depend on features not included in e.g.
|
||||
python-light
|
||||
- Some python modules may require host install of another module to progress,
|
||||
e.g. target cryptography requires host cffi
|
||||
- Some python modules have external C library dependencies, e.g. pyOpenSSL
|
||||
requires openssl libs
|
||||
- Some packages may have an autoconf configure script whose arguments we
|
||||
cannot control with pip and has to be passed on (hacked) by overriding some
|
||||
environment variables
|
||||
|
||||
## How it works
|
||||
|
||||
1. Install host modules required for building target modules
|
||||
2. Install each target module to separate directories
|
||||
3. Install another copy of modules for cleanup purposes to make list of
|
||||
installed files to be removed from target modules installed in step 2
|
||||
|
||||
Why should it be so
|
||||
|
||||
1. Installing target cryptography requires host installation of cffi module
|
||||
2. cryptography requires setuptools and pip will install its own copy with
|
||||
--ignore-installed. When PACKAGE_python-setuptools is also selected, opkg
|
||||
will complain of data file clashes if it was not removed here.
|
||||
|
||||
Pip will handle dependency requirements of python modules, but external
|
||||
dependencies like c libraries has to be prepared by the build system. The
|
||||
issue is that there is currently no way to express such dependencies, thus may
|
||||
cause build failure, e.g. pycrypto requires the presence of libgmp to build
|
||||
successfully.
|
||||
|
||||
## Tips
|
||||
|
||||
If something goes wrong, we can add additional arguments to pip command
|
||||
line to check the detailed build process. Some useful arguments may be
|
||||
|
||||
- -v, for verbose output. Repeat this option if the current level of
|
||||
verbosity is not enough
|
||||
- --no-clean, for preserving pip build dir on build failure
|
||||
|
||||
## Examples
|
||||
|
||||
tornado (python-only module)
|
||||
|
||||
CONFIG_PACKAGE_python-packages=y
|
||||
CONFIG_PACKAGE_python-packages-list="tornado==4.4.2"
|
||||
|
||||
cryptography (requires installation of host modules and cleanup on target modules)
|
||||
|
||||
CONFIG_PACKAGE_python-packages=y
|
||||
CONFIG_PACKAGE_python-packages-list-host="cffi"
|
||||
CONFIG_PACKAGE_python-packages-list="cryptography"
|
||||
CONFIG_PACKAGE_python-packages-list-cleanup="setuptools"
|
||||
|
||||
pycrypto 2.7a1 (python module with autoconf configure script; depends on
|
||||
libgmp; broken wmmintrin.h). 2.6.1 does not work because of a flaw in
|
||||
the setup.py hardcoding host include directory
|
||||
|
||||
CONFIG_PACKAGE_libgmp=y
|
||||
CONFIG_PACKAGE_python-packages=y
|
||||
CONFIG_PACKAGE_python-packages-list="https://github.com/dlitz/pycrypto/archive/v2.7a1.tar.gz"
|
||||
CONFIG_PACKAGE_python-packages-envs="ac_cv_header_wmmintrin_h=no build_alias=$(GNU_HOST_NAME) host_alias=$(GNU_TARGET_NAME) target_alias=$(GNU_TARGET_NAME)"
|
||||
CONFIG_PACKAGE_python-packages-extra-deps="libgmp.so.10"
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
#
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=Parsley
|
||||
PKG_VERSION:=1.3
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/P/Parsley
|
||||
PKG_MD5SUM:=92bc256e5f73810a609dc7874637ad31
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-parsley
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-parsley
|
||||
URL:=http://launchpad.net/parsley
|
||||
DEPENDS:=+python-light
|
||||
endef
|
||||
|
||||
define Package/python-parsley/description
|
||||
Parsing and pattern matching made easy.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-parsley))
|
||||
$(eval $(call BuildPackage,python-parsley))
|
||||
@@ -0,0 +1,12 @@
|
||||
diff -Nur a/setup.py b/setup.py
|
||||
--- a/setup.py 2015-09-09 10:45:25.000000000 +0800
|
||||
+++ b/setup.py 2015-12-01 17:31:03.143409843 +0800
|
||||
@@ -14,7 +14,6 @@
|
||||
author_email="washort42@gmail.com",
|
||||
license="MIT License",
|
||||
long_description=open("README").read(),
|
||||
- packages=["ometa", "terml", "ometa._generated", "terml._generated",
|
||||
- "ometa.test", "terml.test"],
|
||||
+ packages=["ometa", "terml", "ometa._generated", "terml._generated"],
|
||||
py_modules=["parsley"]
|
||||
)
|
||||
@@ -0,0 +1,47 @@
|
||||
#
|
||||
# Copyright (C) 2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-pcapy
|
||||
PKG_VERSION:=0.11.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_MAINTAINER:=Andrew McConachie <andrew@depht.com>
|
||||
PKG_LICENSE:=Apache-1.1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/CoreSecurity/pcapy.git
|
||||
PKG_SOURCE_VERSION:=b91a418374d1636408c435f11799ef725ef70097
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-pcapy
|
||||
SECTION:=language-python
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-pcapy
|
||||
URL:=https://www.coresecurity.com/corelabs-research/open-source-tools/pcapy
|
||||
DEPENDS:=+python +libpcap +libstdcpp
|
||||
endef
|
||||
|
||||
define Package/python-pcapy/description
|
||||
Pcapy is a Python extension module that interfaces with the libpcap packet capture library. Pcapy enables python scripts to capture packets on the network. Pcapy is highly effective when used in conjunction with a packet-handling package such as Impacket, which is a collection of Python classes for constructing and dissecting network packets.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,\
|
||||
install --prefix=/usr --root="$(PKG_INSTALL_DIR)" \
|
||||
)
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-pcapy))
|
||||
$(eval $(call BuildPackage,python-pcapy))
|
||||
@@ -0,0 +1,96 @@
|
||||
#
|
||||
# Copyright (C) 2015-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ply
|
||||
PKG_VERSION:=3.9
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://www.dabeaz.com/ply
|
||||
PKG_HASH:=0d7e2940b9c57151392fceaa62b0865c45e06ce1e36687fd8d03f011a907f43e
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
|
||||
|
||||
HOST_BUILD_DEPENDS:=
|
||||
ifdef CONFIG_PACKAGE_python-ply
|
||||
HOST_BUILD_DEPENDS+=python/host
|
||||
endif
|
||||
ifdef CONFIG_PACKAGE_python3-ply
|
||||
HOST_BUILD_DEPENDS+=python3/host
|
||||
endif
|
||||
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=README.md
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
$(call include_mk, python3-package.mk)
|
||||
|
||||
define Package/python-ply/Default
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
URL:=http://www.dabeaz.com/ply/
|
||||
endef
|
||||
|
||||
define Package/python-ply
|
||||
$(call Package/python-ply/Default)
|
||||
TITLE:=python-ply
|
||||
DEPENDS:=+python-light
|
||||
VARIANT:=python
|
||||
endef
|
||||
|
||||
define Package/python3-ply
|
||||
$(call Package/python-ply/Default)
|
||||
TITLE:=python3-ply
|
||||
DEPENDS:=+python3-light
|
||||
VARIANT:=python3
|
||||
endef
|
||||
|
||||
define Package/python-ply/description
|
||||
PLY is a 100% Python implementation of the common parsing tools lex
|
||||
and yacc.
|
||||
endef
|
||||
|
||||
define Package/python3-ply/description
|
||||
$(call Package/python-ply/description)
|
||||
.
|
||||
(Variant for Python3)
|
||||
endef
|
||||
|
||||
ifdef CONFIG_PACKAGE_python-ply
|
||||
define Host/Compile/python-ply
|
||||
$(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
|
||||
endef
|
||||
endif
|
||||
|
||||
ifdef CONFIG_PACKAGE_python3-ply
|
||||
define Host/Compile/python3-ply
|
||||
$(call Build/Compile/HostPy3Mod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
|
||||
endef
|
||||
endif
|
||||
|
||||
define Host/Compile
|
||||
$(call Host/Compile/python-ply)
|
||||
$(call Host/Compile/python3-ply)
|
||||
endef
|
||||
|
||||
define Host/Install
|
||||
endef
|
||||
|
||||
$(eval $(call HostBuild))
|
||||
|
||||
$(eval $(call PyPackage,python-ply))
|
||||
$(eval $(call BuildPackage,python-ply))
|
||||
|
||||
$(eval $(call Py3Package,python3-ply))
|
||||
$(eval $(call BuildPackage,python3-ply))
|
||||
@@ -0,0 +1,55 @@
|
||||
#
|
||||
# Copyright (C) 2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-psycopg2
|
||||
PKG_VERSION:=2.6.2
|
||||
PKG_RELEASE:=1
|
||||
PKG_MAINTAINER:=Dmitry Trefilov <the-alien@live.ru>
|
||||
PKG_LICENSE:=LGPL-3.0+
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_SOURCE:=psycopg2-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://initd.org/psycopg/tarballs/PSYCOPG-2-6/
|
||||
PKG_MD5SUM:=4a392949ba31a378a18ed3e775a4693f
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/psycopg2-$(PKG_VERSION)
|
||||
PKG_BUILD_DEPENDS:=python libpq python/host
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-psycopg2
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=PostgreSQL database adapter for Python
|
||||
URL:=http://www.initd.org/
|
||||
DEPENDS:=+python +libpq +python-egenix-mx-base
|
||||
endef
|
||||
|
||||
define Package/python-psycopg2/description
|
||||
Psycopg is the most popular PostgreSQL adapter for the Python programming language
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
# The PATH var is required so that psycopg2's setup.py script finds pg_config
|
||||
$(call Build/Compile/PyMod,., \
|
||||
install --prefix=/usr --root=$(PKG_INSTALL_DIR), \
|
||||
PATH=$(STAGING_DIR)/usr/bin:$(PATH))
|
||||
endef
|
||||
|
||||
define Package/python-psycopg2/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-psycopg2))
|
||||
$(eval $(call BuildPackage,python-psycopg2))
|
||||
@@ -0,0 +1,46 @@
|
||||
#
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pyasn1-modules
|
||||
PKG_VERSION:=0.0.8
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pyasn1-modules
|
||||
PKG_MD5SUM:=178129bc7fbf07215c25230c5f053f81
|
||||
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
PKG_LICENSE:=BSD-2-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE.txt
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-pyasn1-modules
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-pyasn1-modules
|
||||
URL:=http://sourceforge.net/projects/pyasn1/
|
||||
DEPENDS:=+python-light +python-pyasn1
|
||||
endef
|
||||
|
||||
define Package/python-pyasn1-modules/description
|
||||
This is a small but growing collection of ASN.1 data structures
|
||||
expressed in Python terms using pyasn1 data model.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-pyasn1-modules))
|
||||
$(eval $(call BuildPackage,python-pyasn1-modules))
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pyasn1
|
||||
PKG_VERSION:=0.1.9
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pyasn1
|
||||
PKG_MD5SUM:=f00a02a631d4016818659d1cc38d229a
|
||||
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
PKG_LICENSE:=BSD-2-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE.txt
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-pyasn1
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-pyasn1
|
||||
URL:=http://pyasn1.sourceforge.net/
|
||||
DEPENDS:=+python-light
|
||||
endef
|
||||
|
||||
define Package/python-pyasn1/description
|
||||
This is an implementation of ASN.1 types and codecs in Python programming
|
||||
language. It has been first written to support particular protocol (SNMP)
|
||||
but then generalized to be suitable for a wide range of protocols
|
||||
based on ASN.1 specification.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-pyasn1))
|
||||
$(eval $(call BuildPackage,python-pyasn1))
|
||||
@@ -0,0 +1,97 @@
|
||||
#
|
||||
# Copyright (C) 2015-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pycparser
|
||||
PKG_VERSION:=2.14
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pycparser
|
||||
PKG_HASH:=7959b4a74abdc27b312fed1c21e6caf9309ce0b29ea86b591fd2e99ecdf27f73
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
|
||||
|
||||
HOST_BUILD_DEPENDS:=python-ply/host
|
||||
ifdef CONFIG_PACKAGE_python-pycparser
|
||||
HOST_BUILD_DEPENDS+=python/host
|
||||
endif
|
||||
ifdef CONFIG_PACKAGE_python3-pycparser
|
||||
HOST_BUILD_DEPENDS+=python3/host
|
||||
endif
|
||||
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
$(call include_mk, python3-package.mk)
|
||||
|
||||
define Package/python-pycparser/Default
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
URL:=https://github.com/eliben/pycparser
|
||||
endef
|
||||
|
||||
define Package/python-pycparser
|
||||
$(call Package/python-pycparser/Default)
|
||||
TITLE:=python-pycparser
|
||||
DEPENDS:=+python-light +python-ply
|
||||
VARIANT:=python
|
||||
endef
|
||||
|
||||
define Package/python3-pycparser
|
||||
$(call Package/python-pycparser/Default)
|
||||
TITLE:=python3-pycparser
|
||||
DEPENDS:=+python3-light +python3-ply
|
||||
VARIANT:=python3
|
||||
endef
|
||||
|
||||
define Package/python-pycparser/description
|
||||
pycparser is a parser for the C language, written in pure Python. It is a
|
||||
module designed to be easily integrated into applications that need to parse
|
||||
C source code.
|
||||
endef
|
||||
|
||||
define Package/python3-pycparser/description
|
||||
$(call Package/python-pycparser/description)
|
||||
.
|
||||
(Variant for Python3)
|
||||
endef
|
||||
|
||||
ifdef CONFIG_PACKAGE_python-pycparser
|
||||
define Host/Compile/python-pycparser
|
||||
$(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
|
||||
endef
|
||||
endif
|
||||
|
||||
ifdef CONFIG_PACKAGE_python3-pycparser
|
||||
define Host/Compile/python3-pycparser
|
||||
$(call Build/Compile/HostPy3Mod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
|
||||
endef
|
||||
endif
|
||||
|
||||
define Host/Compile
|
||||
$(call Host/Compile/python-pycparser)
|
||||
$(call Host/Compile/python3-pycparser)
|
||||
endef
|
||||
|
||||
define Host/Install
|
||||
endef
|
||||
|
||||
$(eval $(call HostBuild))
|
||||
|
||||
$(eval $(call PyPackage,python-pycparser))
|
||||
$(eval $(call BuildPackage,python-pycparser))
|
||||
|
||||
$(eval $(call Py3Package,python3-pycparser))
|
||||
$(eval $(call BuildPackage,python3-pycparser))
|
||||
@@ -0,0 +1,41 @@
|
||||
diff --git a/pycparser/c_lexer.py b/pycparser/c_lexer.py
|
||||
index cbb9d26..cbd7742 100644
|
||||
--- a/pycparser/c_lexer.py
|
||||
+++ b/pycparser/c_lexer.py
|
||||
@@ -9,8 +9,8 @@
|
||||
import re
|
||||
import sys
|
||||
|
||||
-from .ply import lex
|
||||
-from .ply.lex import TOKEN
|
||||
+from ply import lex
|
||||
+from ply.lex import TOKEN
|
||||
|
||||
|
||||
class CLexer(object):
|
||||
diff --git a/pycparser/c_parser.py b/pycparser/c_parser.py
|
||||
index f4f7453..5c0ca88 100644
|
||||
--- a/pycparser/c_parser.py
|
||||
+++ b/pycparser/c_parser.py
|
||||
@@ -8,7 +8,7 @@
|
||||
#------------------------------------------------------------------------------
|
||||
import re
|
||||
|
||||
-from .ply import yacc
|
||||
+from ply import yacc
|
||||
|
||||
from . import c_ast
|
||||
from .c_lexer import CLexer
|
||||
diff --git a/setup.py b/setup.py
|
||||
index fdccbb3..036a10b 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -49,7 +49,7 @@ setup(
|
||||
classifiers = [
|
||||
'Programming Language :: Python :: 2',
|
||||
'Programming Language :: Python :: 3',],
|
||||
- packages=['pycparser', 'pycparser.ply'],
|
||||
+ packages=['pycparser'],
|
||||
package_data={'pycparser': ['*.cfg']},
|
||||
cmdclass={'install': install, 'sdist': sdist},
|
||||
)
|
||||
@@ -0,0 +1,45 @@
|
||||
#
|
||||
# Copyright (C) 2015-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pyOpenSSL
|
||||
PKG_VERSION:=16.1.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/15/1e/79c75db50e57350a7cefb70b110255757e9abd380a50ebdc0cfd853b7450
|
||||
PKG_MD5SUM:=d8100b0c333f0eeadaf05914da8792a6
|
||||
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-pyopenssl
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-pyopenssl
|
||||
URL:=https://github.com/pyca/pyopenssl
|
||||
DEPENDS:=+python-light +python-cryptography +python-six
|
||||
endef
|
||||
|
||||
define Package/python-pyopenssl/description
|
||||
Python wrapper module around the OpenSSL library
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-pyopenssl))
|
||||
$(eval $(call BuildPackage,python-pyopenssl))
|
||||
@@ -0,0 +1,46 @@
|
||||
#
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pyptlib
|
||||
PKG_VERSION:=0.0.6
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pyptlib
|
||||
PKG_MD5SUM:=2fc7b8803777451c1fad3d5e25f1b99c
|
||||
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-pyptlib
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-pyptlib
|
||||
URL:=https://pypi.python.org/pypi/pyptlib
|
||||
DEPENDS:=+python-light
|
||||
endef
|
||||
|
||||
define Package/python-pyptlib/description
|
||||
A python implementation of the Pluggable Transports for Circumvention
|
||||
specification for Tor
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-pyptlib))
|
||||
$(eval $(call BuildPackage,python-pyptlib))
|
||||
@@ -0,0 +1,50 @@
|
||||
#
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-pyserial
|
||||
PKG_VERSION:=3.1.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_MAINTAINER:=Micke Prag <micke.prag@telldus.se>
|
||||
PKG_LICENSE:=Python-2.0
|
||||
|
||||
PKG_SOURCE:=pyserial-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://pypi.python.org/packages/3c/d8/a9fa247ca60b02b3bebbd61766b4f321393b57b13c53b18f6f62cf172c08/
|
||||
PKG_MD5SUM:=2f72100de3e410b36d575e12e82e9d27
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/pyserial-$(PKG_VERSION)
|
||||
PKG_BUILD_DEPENDS:=python
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-pyserial
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=python-pyserial
|
||||
URL:=http://pyserial.sourceforge.net
|
||||
DEPENDS:=+python-light
|
||||
endef
|
||||
|
||||
define Package/python-pyserial/description
|
||||
serial port python bindings
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root="$(PKG_INSTALL_DIR)")
|
||||
endef
|
||||
|
||||
define Package/python-pyserial/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,python-pyserial))
|
||||
@@ -0,0 +1,46 @@
|
||||
#
|
||||
# Copyright (C) 2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=service_identity
|
||||
PKG_VERSION:=16.0.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/s/service_identity
|
||||
PKG_MD5SUM:=d52392597b9c44a740abf322bfdb21e6
|
||||
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-service-identity
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-service-identity
|
||||
URL:=https://github.com/pyca/service_identity
|
||||
DEPENDS:=+python-light +python-attrs +python-pyasn1 +python-pyasn1-modules +python-pyopenssl
|
||||
endef
|
||||
|
||||
define Package/python-service-identity/description
|
||||
service_identity aspires to give you all the tools you need for
|
||||
verifying whether a certificate is valid for the intended purposes.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-service-identity))
|
||||
$(eval $(call BuildPackage,python-service-identity))
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=six
|
||||
PKG_VERSION:=1.10.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/s/six
|
||||
PKG_MD5SUM:=34eed507548117b2ab523ab14b2f8b55
|
||||
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-six
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-six
|
||||
URL:=https://pypi.python.org/pypi/six
|
||||
DEPENDS:=+python-light
|
||||
endef
|
||||
|
||||
define Package/python-six/description
|
||||
Six is a Python 2 and 3 compatibility library. It provides utility functions
|
||||
for smoothing over the differences between the Python versions with the goal of
|
||||
writing Python code that is compatible on both Python versions. See the
|
||||
documentation for more information on what is provided.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-six))
|
||||
$(eval $(call BuildPackage,python-six))
|
||||
@@ -0,0 +1,49 @@
|
||||
#
|
||||
# Copyright (C) 2015-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=txsocksx
|
||||
PKG_VERSION:=1.15.0.2
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/t/txsocksx
|
||||
PKG_MD5SUM:=0266b9ae7b58f7550a49683afebf65ba
|
||||
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
PKG_LICENSE:=ISC
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-txsocksx
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python-txsocksx
|
||||
URL:=https://github.com/habnabit/txsocksx
|
||||
DEPENDS:=+python-light +python-parsley +twisted
|
||||
endef
|
||||
|
||||
define Package/python-txsocksx/description
|
||||
txsocksx is SOCKS4/4a and SOCKS5 client endpoints for Twisted 10.1 or
|
||||
greater.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,, \
|
||||
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)", \
|
||||
PKG_VERSION="$(PKG_VERSION)" \
|
||||
)
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-txsocksx))
|
||||
$(eval $(call BuildPackage,python-txsocksx))
|
||||
@@ -0,0 +1,11 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 7979f89..3873a1e 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -35,5 +35,5 @@ setup(
|
||||
'version_module_paths': ['txsocksx/_version.py'],
|
||||
},
|
||||
install_requires=install_requires,
|
||||
- packages=['txsocksx', 'txsocksx.test'],
|
||||
+ packages=['txsocksx'],
|
||||
)
|
||||
@@ -0,0 +1,29 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 7979f89..5e1abb3 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -1,6 +1,8 @@
|
||||
# Copyright (c) Aaron Gallagher <_@habnab.it>
|
||||
# See COPYING for details.
|
||||
|
||||
+import os
|
||||
+
|
||||
from setuptools import setup
|
||||
|
||||
|
||||
@@ -30,10 +32,11 @@ setup(
|
||||
],
|
||||
license='ISC',
|
||||
|
||||
- setup_requires=['vcversioner>=1'],
|
||||
- vcversioner={
|
||||
- 'version_module_paths': ['txsocksx/_version.py'],
|
||||
- },
|
||||
+ #setup_requires=['vcversioner>=1'],
|
||||
+ #vcversioner={
|
||||
+ # 'version_module_paths': ['txsocksx/_version.py'],
|
||||
+ #},
|
||||
+ version=os.environ.get('PKG_VERSION'),
|
||||
install_requires=install_requires,
|
||||
packages=['txsocksx', 'txsocksx.test'],
|
||||
)
|
||||
@@ -0,0 +1,49 @@
|
||||
#
|
||||
# Copyright (C) 2007-2017 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-urllib3
|
||||
PKG_VERSION:=1.20
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=MIT
|
||||
|
||||
PKG_SOURCE:=urllib3-$(PKG_VERSION).tar.gz
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/urllib3-$(PKG_VERSION)/
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/20/56/a6aa403b0998f857b474a538343ee483f5c02491bd1aebf61d42a3f60f77/
|
||||
PKG_MD5SUM:=34691d4e7e20a8e9cdb452ea24fc38e7
|
||||
PKG_BUILD_DEPENDS:=python python-setuptools
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-urllib3
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
|
||||
TITLE:=HTTP library with thread-safe connection pooling, file post, and more.
|
||||
URL:=https://urllib3.readthedocs.io/
|
||||
DEPENDS:=+python
|
||||
endef
|
||||
|
||||
define Package/python-urllib3/description
|
||||
HTTP library with thread-safe connection pooling, file post, and more.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
||||
endef
|
||||
|
||||
define Package/python-urllib3/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,python-urllib3))
|
||||
@@ -0,0 +1,43 @@
|
||||
#
|
||||
# Copyright (C) 2008-2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=PyYAML
|
||||
PKG_VERSION:=3.11
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://pyyaml.org/download/pyyaml/
|
||||
PKG_MD5SUM:=f50e08ef0fe55178479d3a618efe21db
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
|
||||
|
||||
PKG_BUILD_DEPENDS:=python
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-yaml
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=YAML parser and emitter for Python
|
||||
URL:=http://pyyaml.org/wiki/PyYAML
|
||||
DEPENDS:=+python +libyaml
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,,\
|
||||
--with-libyaml install --prefix="$(PKG_INSTALL_DIR)/usr" \
|
||||
)
|
||||
endef
|
||||
|
||||
$(eval $(call PyPackage,python-yaml))
|
||||
$(eval $(call BuildPackage,python-yaml))
|
||||
@@ -0,0 +1,52 @@
|
||||
#
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python3-bottle
|
||||
PKG_VERSION:=0.12.12
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
|
||||
|
||||
PKG_SOURCE:=bottle-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://pypi.python.org/packages/f7/dd/8ceaa148eeed5371a83fa1fb5a54b01dfc95000799c649924ece23f9f0e1/
|
||||
PKG_MD5SUM:=3d4b6b0e22f67b421c273105b30d9a21fd147eaf0c1576172378ee034fbf5313
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/bottle-$(PKG_VERSION)
|
||||
PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python3-package.mk)
|
||||
|
||||
define Package/python3-bottle
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=Bottle is a fast, simple and lightweight WSGI micro web-framework for Python
|
||||
URL:=http://bottlepy.org
|
||||
DEPENDS:=+python3
|
||||
endef
|
||||
|
||||
define Package/python3-bottle/description
|
||||
Bottle is a fast, simple and lightweight WSGI micro web-framework for Python.
|
||||
It is distributed as a single file module and has no dependencies other than the
|
||||
Python Standard Library.
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/python3-bottle/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON3_PKG_DIR)
|
||||
$(CP) $(PKG_BUILD_DIR)/bottle.py $(1)$(PYTHON3_PKG_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,python3-bottle))
|
||||
@@ -0,0 +1,305 @@
|
||||
#
|
||||
# Copyright (C) 2006-2016 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
# The file included below defines PYTHON_VERSION
|
||||
include ./files/python3-version.mk
|
||||
|
||||
PYTHON_VERSION:=$(PYTHON3_VERSION)
|
||||
PYTHON_VERSION_MICRO:=$(PYTHON3_VERSION_MICRO)
|
||||
|
||||
PKG_NAME:=python3
|
||||
PKG_RELEASE:=1
|
||||
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
|
||||
|
||||
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
|
||||
PKG_MD5SUM:=692b4fc3a2ba0d54d1495d4ead5b0b5c
|
||||
PKG_HASH:=a01810ddfcec216bcdb357a84bfaafdfaa0ca42bbdaa4cb7ff74f5a9961e4041
|
||||
|
||||
PKG_LICENSE:=PSF
|
||||
PKG_LICENSE_FILES:=LICENSE Modules/_ctypes/libffi_msvc/LICENSE Modules/_ctypes/darwin/LICENSE Modules/_ctypes/libffi/LICENSE Modules/_ctypes/libffi_osx/LICENSE Tools/pybench/LICENSE
|
||||
|
||||
# This file provides the necsessary host build variables
|
||||
include ./files/python3-host.mk
|
||||
|
||||
# For Py3Package
|
||||
include ./files/python3-package.mk
|
||||
|
||||
PKG_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
HOST_BUILD_PARALLEL:=1
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/Python-$(PKG_VERSION)
|
||||
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/Python-$(PKG_VERSION)
|
||||
|
||||
PKG_BUILD_DEPENDS:=python3/host
|
||||
HOST_BUILD_DEPENDS:=bzip2/host expat/host libffi/host
|
||||
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/python3/Default
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=Python $(PYTHON_VERSION) programming language
|
||||
URL:=https://www.python.org/
|
||||
MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
|
||||
endef
|
||||
|
||||
define Package/python3/Default/description
|
||||
Python is a dynamic object-oriented programming language that can be used
|
||||
for many kinds of software development. It offers strong support for
|
||||
integration with other languages and tools, comes with extensive standard
|
||||
libraries, and can be learned in a few days. Many Python programmers
|
||||
report substantial productivity gains and feel the language encourages
|
||||
the development of higher quality, more maintainable code.
|
||||
endef
|
||||
|
||||
define Package/python3-base
|
||||
$(call Package/python3/Default)
|
||||
TITLE:=Python $(PYTHON_VERSION) interpreter
|
||||
DEPENDS:=+libpthread +zlib
|
||||
endef
|
||||
|
||||
define Package/python3-base/description
|
||||
This package contains only the interpreter and the bare minimum
|
||||
for the interpreter to start.
|
||||
endef
|
||||
|
||||
define Package/python3-light
|
||||
$(call Package/python3/Default)
|
||||
TITLE:=Python $(PYTHON_VERSION) light installation
|
||||
DEPENDS:=+python3-base +libffi +libbz2
|
||||
endef
|
||||
|
||||
define Package/python3-light/description
|
||||
This package is essentially the python3-base package plus
|
||||
a few of the rarely used (and big) libraries stripped out
|
||||
into separate packages.
|
||||
endef
|
||||
|
||||
PYTHON3_LIB_FILES_DEL:=
|
||||
PYTHON3_PACKAGES:=
|
||||
PYTHON3_SO_SUFFIX:=cpython-$(PYTHON3_VERSION_MAJOR)$(PYTHON3_VERSION_MINOR).so
|
||||
PYTHON3_PACKAGES_DEPENDS:=
|
||||
define Py3BasePackage
|
||||
PYTHON3_PACKAGES+=$(1)
|
||||
ifeq ($(3),)
|
||||
PYTHON3_PACKAGES_DEPENDS+=$(1)
|
||||
endif
|
||||
PYTHON3_LIB_FILES_DEL+=$(2)
|
||||
define Py3Package/$(1)/filespec
|
||||
ifneq ($(2),)
|
||||
$(subst $(space),$(newline),$(foreach lib_file,$(2),+|$(lib_file)))
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/*/test
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/*/tests
|
||||
endif
|
||||
endef
|
||||
endef
|
||||
|
||||
include ./files/python3-package-*.mk
|
||||
|
||||
define Package/python3
|
||||
$(call Package/python3/Default)
|
||||
DEPENDS:=+python3-light $(foreach package,$(PYTHON3_PACKAGES_DEPENDS),+$(package))
|
||||
endef
|
||||
|
||||
define Package/python3/description
|
||||
This package contains the (almost) full Python install.
|
||||
It's python3-light + all other packages.
|
||||
endef
|
||||
|
||||
MAKE_FLAGS+=\
|
||||
CROSS_COMPILE=yes \
|
||||
LD="$(TARGET_CC)" \
|
||||
PGEN=pgen3
|
||||
|
||||
EXTRA_CFLAGS+= \
|
||||
-DNDEBUG -fno-inline
|
||||
EXTRA_LDFLAGS+= \
|
||||
-L$(PKG_BUILD_DIR)
|
||||
|
||||
ENABLE_IPV6:=
|
||||
ifeq ($(CONFIG_IPV6),y)
|
||||
ENABLE_IPV6 += --enable-ipv6
|
||||
endif
|
||||
|
||||
PYTHON_FOR_BUILD:= \
|
||||
_PYTHON_PROJECT_BASE=$(PKG_BUILD_DIR) \
|
||||
_PYTHON_HOST_PLATFORM=linux2 \
|
||||
PYTHONPATH="$(PKG_BUILD_DIR)/Lib:$(PKG_BUILD_DIR)/build/lib.linux2-$(PYTHON_VERSION)" \
|
||||
_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata \
|
||||
$(HOST_PYTHON3_BIN)
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--sysconfdir=/etc \
|
||||
--enable-shared \
|
||||
--without-cxx-main \
|
||||
--with-threads \
|
||||
--with-system-ffi \
|
||||
--with-ensurepip=no \
|
||||
--without-pymalloc \
|
||||
PYTHON_FOR_BUILD="$(PYTHON_FOR_BUILD)" \
|
||||
$(ENABLE_IPV6) \
|
||||
CONFIG_SITE="$(PKG_BUILD_DIR)/config.site" \
|
||||
OPT="$(TARGET_CFLAGS)"
|
||||
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
$(CP) ./files/config.site $(PKG_BUILD_DIR)/config.site
|
||||
endef
|
||||
|
||||
ifdef CONFIG_PACKAGE_python3-setuptools
|
||||
define Build/Compile/python3-setuptools
|
||||
$(STAGING_DIR_HOSTPKG)/bin/pip3 install \
|
||||
--ignore-installed \
|
||||
--root=$(PKG_BUILD_DIR)/install-setuptools --prefix=. \
|
||||
$(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/setuptools-*.whl
|
||||
endef
|
||||
endif # CONFIG_PACKAGE_python3-setuptools
|
||||
|
||||
ifdef CONFIG_PACKAGE_python3-pip
|
||||
define Build/Compile/python3-pip
|
||||
$(STAGING_DIR_HOSTPKG)/bin/pip3 install \
|
||||
--ignore-installed \
|
||||
--root=$(PKG_BUILD_DIR)/install-pip --prefix=. \
|
||||
$(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/pip-*.whl
|
||||
endef
|
||||
endif # CONFIG_PACKAGE_python3-pip
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/Default)
|
||||
# Use host pip to install python-setuptools
|
||||
$(call Build/Compile/python3-setuptools)
|
||||
$(call Build/Compile/python3-pip)
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(STAGING_DIR)/mk/
|
||||
$(INSTALL_DIR) $(1)/usr/include/ $(1)/usr/lib/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON_VERSION)/
|
||||
$(INSTALL_DATA) \
|
||||
./files/python3-package.mk \
|
||||
./files/python3-host.mk \
|
||||
./files/python3-version.mk \
|
||||
./files/python3-package-install.sh \
|
||||
$(STAGING_DIR)/mk/
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/include/python$(PYTHON_VERSION) \
|
||||
$(1)/usr/include/
|
||||
$(CP) \
|
||||
$(HOST_PYTHON3_LIB_DIR) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* \
|
||||
$(1)/usr/lib/
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION)/config-$(PYTHON_VERSION) \
|
||||
$(1)/usr/lib/python$(PYTHON_VERSION)/
|
||||
endef
|
||||
|
||||
PYTHON3_BASE_LIB_FILES:= \
|
||||
/usr/lib/python$(PYTHON_VERSION)/encodings \
|
||||
/usr/lib/python$(PYTHON_VERSION)/_collections_abc.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/_sitebuiltins.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/_sysconfigdata.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/_weakrefset.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/abc.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/codecs.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/genericpath.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/io.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/os.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/posixpath.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/site.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/sysconfig.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/stat.py
|
||||
|
||||
PYTHON3_LIB_FILES_DEL+=$(PYTHON3_BASE_LIB_FILES)
|
||||
|
||||
define Py3Package/python3-base/filespec
|
||||
+|/usr/bin/python$(PYTHON_VERSION)
|
||||
$(subst $(space),$(newline),$(foreach lib_file,$(PYTHON3_BASE_LIB_FILES),+|$(lib_file)))
|
||||
endef
|
||||
|
||||
define Py3Package/python3-light/filespec
|
||||
+|/usr/lib/python$(PYTHON_VERSION)
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/distutils/cygwinccompiler.py
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/distutils/command/wininst*
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/ensurepip
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/idlelib
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/tkinter
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/turtledemo
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_test*.so
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/readline*.so
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/pdb.doc
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/test
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/webbrowser.py
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/*/test
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/*/tests
|
||||
-|/usr/lib/python$(PYTHON_VERSION)/_osx_support.py
|
||||
$(subst $(space),$(newline),$(foreach lib_file,$(PYTHON3_LIB_FILES_DEL),-|$(lib_file)))
|
||||
endef
|
||||
|
||||
define Py3Package/python3-base/install
|
||||
# Adding the lib-dynload folder (even just empty) suppresses 2 warnings when starting Python
|
||||
$(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON_VERSION)/lib-dynload/
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(LN) python$(PYTHON_VERSION) $(1)/usr/bin/python3
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Py3Package/python3/filespec
|
||||
-|$(PYTHON3_PKG_DIR)
|
||||
endef
|
||||
|
||||
HOST_LDFLAGS += \
|
||||
$$$$(pkg-config --static --libs libcrypto libssl)
|
||||
|
||||
HOST_CONFIGURE_ARGS+= \
|
||||
--without-cxx-main \
|
||||
--without-pymalloc \
|
||||
--with-threads \
|
||||
--prefix=$(HOST_PYTHON3_DIR) \
|
||||
--exec-prefix=$(HOST_PYTHON3_DIR) \
|
||||
--with-system-expat=$(STAGING_DIR_HOSTPKG) \
|
||||
--with-system-ffi=no \
|
||||
--with-ensurepip=install \
|
||||
CONFIG_SITE=
|
||||
|
||||
define Host/Compile
|
||||
+$(HOST_MAKE_VARS) $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) python Parser/pgen
|
||||
+$(HOST_MAKE_VARS) $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) sharedmods
|
||||
endef
|
||||
|
||||
define Host/Install
|
||||
$(MAKE) -C $(HOST_BUILD_DIR) install
|
||||
|
||||
$(INSTALL_DIR) $(HOST_PYTHON3_DIR)/bin/
|
||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/Parser/pgen $(HOST_PYTHON3_DIR)/bin/pgen3
|
||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/Programs/_freeze_importlib $(HOST_PYTHON3_DIR)/bin/_freeze_importlib
|
||||
endef
|
||||
|
||||
$(eval $(call HostBuild))
|
||||
|
||||
$(foreach package, $(PYTHON3_PACKAGES), \
|
||||
$(eval $(call Py3Package,$(package))) \
|
||||
$(eval $(call BuildPackage,$(package))) \
|
||||
$(eval $(call BuildPackage,$(package)-src)) \
|
||||
)
|
||||
|
||||
$(eval $(call Py3Package,python3-base))
|
||||
$(eval $(call Py3Package,python3-light))
|
||||
$(eval $(call Py3Package,python3))
|
||||
|
||||
$(eval $(call BuildPackage,python3-base))
|
||||
$(eval $(call BuildPackage,python3-light))
|
||||
$(eval $(call BuildPackage,python3))
|
||||
|
||||
$(eval $(call BuildPackage,python3-base-src))
|
||||
$(eval $(call BuildPackage,python3-light-src))
|
||||
$(eval $(call BuildPackage,python3-src))
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user