2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=python-setuptools
14 PKG_SOURCE
:=setuptools-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://pypi.python.org
/packages
/source
/s
/setuptools
/
16 PKG_MD5SUM
:=52b4e48939ef311d7204f8fe940764f4
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/setuptools-
$(PKG_VERSION
)
20 include $(INCLUDE_DIR
)/package.mk
21 $(call include_mk
, python-package.mk
)
23 define Package
/python-setuptools
27 TITLE
:=Tool for installing Python packages.
28 URL
:=https
://bitbucket.org
/pypa
/setuptools
30 MAINTAINER
:=Alexandru Ardelean
<ardeleanalex@gmail.com
>
33 define Package
/python-setuptools
/description
34 Easily download
, build
, install, upgrade
, and
uninstall Python packages
38 $(call Build
/Compile
/PyMod
,,\
39 install --root
="$(PKG_INSTALL_DIR)" --prefix="/usr" \
40 --single-version-externally-managed \
44 define Build
/InstallDev
45 $(INSTALL_DIR
) $(PYTHON_LIB_DIR
)
47 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
51 define PyPackage
/python-setuptools
/install
52 $(INSTALL_DIR
) $(1)/usr
/bin
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
56 $(eval
$(call PyPackage
,python-setuptools
))
57 $(eval
$(call BuildPackage
,python-setuptools
))