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:
Alexandru Ardelean
2017-05-17 16:45:48 +03:00
parent 1bf7af4ca5
commit 68312f49c0
144 changed files with 0 additions and 0 deletions

View File

@@ -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))

View File

@@ -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,