2006-10-31 08:44:54 +00:00
|
|
|
#
|
2012-05-03 22:19:01 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-10-31 08:44:54 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2007-10-21 10:20:01 +00:00
|
|
|
|
2006-10-24 17:20:50 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=python
|
2012-05-03 22:19:01 +00:00
|
|
|
PKG_VERSION:=2.7.3
|
|
|
|
PKG_RELEASE:=1
|
2012-03-30 13:24:08 +00:00
|
|
|
|
2012-05-03 22:19:01 +00:00
|
|
|
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=http://www.python.org/ftp/python/$(PKG_VERSION)
|
|
|
|
PKG_MD5SUM:=62c4c1699170078c469f79ddfed21bc0
|
2010-10-27 13:37:11 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2010-09-08 10:34:23 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2010-10-27 13:37:11 +00:00
|
|
|
HOST_BUILD_PARALLEL:=1
|
2006-10-24 17:20:50 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/Python-$(PKG_VERSION)
|
2010-10-27 13:37:11 +00:00
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/Python-$(PKG_VERSION)
|
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS:=python/host
|
2006-10-24 17:20:50 +00:00
|
|
|
|
2010-10-27 13:37:11 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2007-10-09 00:54:48 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2008-10-02 15:33:26 +00:00
|
|
|
-include $(if $(DUMP),,./files/python-package.mk)
|
2007-04-20 18:18:10 +00:00
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python/Default
|
2007-09-23 18:08:06 +00:00
|
|
|
SUBMENU:=Python
|
2006-11-02 13:46:37 +00:00
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
2009-03-06 20:27:09 +00:00
|
|
|
TITLE:=Python $(PYTHON_VERSION) programming language
|
2006-11-02 13:46:37 +00:00
|
|
|
URL:=http://www.python.org/
|
2006-10-24 17:20:50 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python/Default/description
|
2008-10-02 15:33:26 +00:00
|
|
|
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
|
2007-10-09 00:54:48 +00:00
|
|
|
the development of higher quality, more maintainable code.
|
2006-10-24 17:20:50 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python
|
|
|
|
$(call Package/python/Default)
|
2008-10-02 15:33:26 +00:00
|
|
|
TITLE+= (full)
|
2010-03-09 23:49:07 +00:00
|
|
|
DEPENDS:=+libpthread +zlib +libffi +python-mini
|
2007-10-09 00:54:48 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python/description
|
|
|
|
$(call Package/python/Default/description)
|
2007-10-09 00:54:48 +00:00
|
|
|
.
|
|
|
|
This package contains the full Python install.
|
2006-10-24 17:20:50 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python-mini
|
|
|
|
$(call Package/python/Default)
|
2008-10-02 15:33:26 +00:00
|
|
|
TITLE+= (minimal)
|
|
|
|
DEPENDS:=+libpthread +zlib
|
2007-10-09 00:54:48 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python-mini/description
|
|
|
|
$(call Package/python/Default/description)
|
2008-10-02 15:33:26 +00:00
|
|
|
.
|
|
|
|
This package contains only a minimal Python install.
|
2007-10-09 00:54:48 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python-doc
|
|
|
|
$(call Package/python/Default)
|
2008-10-02 15:33:26 +00:00
|
|
|
TITLE:=Python interactive documentation
|
2009-03-06 20:27:09 +00:00
|
|
|
DEPENDS+=+python-mini
|
2007-10-09 00:54:48 +00:00
|
|
|
endef
|
|
|
|
|
2011-11-20 13:42:14 +00:00
|
|
|
define Package/python-bzip2
|
|
|
|
$(call Package/python/Default)
|
|
|
|
TITLE:=Python support for Bzip2
|
|
|
|
DEPENDS+=+python-mini +libbz2
|
|
|
|
endef
|
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python-expat
|
|
|
|
$(call Package/python/Default)
|
2008-10-02 15:33:26 +00:00
|
|
|
TITLE:=Python support for expat
|
2009-03-06 20:27:09 +00:00
|
|
|
DEPENDS+=+python-mini +libexpat
|
2007-10-09 00:54:48 +00:00
|
|
|
endef
|
|
|
|
|
2010-07-18 15:09:10 +00:00
|
|
|
define Package/python-gzip
|
|
|
|
$(call Package/python/Default)
|
|
|
|
TITLE:=Python support for gzip
|
|
|
|
DEPENDS+=+python-mini
|
|
|
|
endef
|
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python-openssl
|
|
|
|
$(call Package/python/Default)
|
2007-10-09 00:54:48 +00:00
|
|
|
TITLE:=Python support for OpenSSL
|
2009-03-06 20:27:09 +00:00
|
|
|
DEPENDS+=+python-mini +libopenssl
|
|
|
|
endef
|
|
|
|
|
2010-07-18 15:09:10 +00:00
|
|
|
define Package/python-shutil
|
|
|
|
$(call Package/python/Default)
|
|
|
|
TITLE:=Python support for shutil
|
|
|
|
DEPENDS+=+python-mini
|
|
|
|
endef
|
|
|
|
|
2012-03-29 14:11:26 +00:00
|
|
|
# Needs datetime
|
2009-03-06 20:27:09 +00:00
|
|
|
define Package/python-sqlite3
|
|
|
|
$(call Package/python/Default)
|
|
|
|
TITLE:=Python support for sqlite3
|
2012-03-29 14:11:26 +00:00
|
|
|
DEPENDS+=+python +libsqlite3
|
2007-10-09 00:54:48 +00:00
|
|
|
endef
|
|
|
|
|
2010-01-03 17:23:51 +00:00
|
|
|
define Package/python-gdbm
|
|
|
|
$(call Package/python/Default)
|
|
|
|
TITLE:=Python support for gdbm
|
|
|
|
DEPENDS+=+python-mini +libgdbm
|
|
|
|
endef
|
2007-10-09 00:54:48 +00:00
|
|
|
|
2012-03-30 13:24:08 +00:00
|
|
|
define Package/python-readline
|
|
|
|
$(call Package/python/Default)
|
|
|
|
TITLE:=Python support for readline
|
|
|
|
DEPENDS+=+python-mini +libreadline +libncurses @BROKEN
|
|
|
|
endef
|
|
|
|
|
2012-06-11 20:33:30 +00:00
|
|
|
define Package/python-ncurses
|
|
|
|
$(call Package/python/Default)
|
|
|
|
TITLE:=Python support for readline
|
|
|
|
DEPENDS+=+python-mini +libncurses
|
|
|
|
endef
|
|
|
|
|
2010-10-27 13:37:11 +00:00
|
|
|
MAKE_FLAGS:=\
|
2007-09-06 02:52:35 +00:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2010-10-27 13:37:11 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2007-10-09 00:54:48 +00:00
|
|
|
CROSS_COMPILE=yes \
|
2012-03-29 14:11:26 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -DNDEBUG -fno-inline" \
|
2007-09-06 02:52:35 +00:00
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
|
LD="$(TARGET_CC)" \
|
2009-01-06 18:34:13 +00:00
|
|
|
HOSTPYTHON=./hostpython \
|
2010-10-27 13:37:11 +00:00
|
|
|
HOSTPGEN=./hostpgen
|
2007-10-09 00:54:48 +00:00
|
|
|
|
2012-03-29 14:11:26 +00:00
|
|
|
ENABLE_IPV6:=
|
|
|
|
ifeq ($(CONFIG_IPV6),y)
|
|
|
|
ENABLE_IPV6 += --enable-ipv6
|
|
|
|
endif
|
|
|
|
|
2007-10-09 00:54:48 +00:00
|
|
|
define Build/Configure
|
|
|
|
-$(MAKE) -C $(PKG_BUILD_DIR) distclean
|
2010-10-27 13:37:11 +00:00
|
|
|
(cd $(PKG_BUILD_DIR); autoreconf --force --install || exit 0)
|
2009-03-06 20:27:09 +00:00
|
|
|
# The python executable needs to stay in the rootdir since its location will
|
|
|
|
# be used to compute the path of the config files.
|
2010-10-27 13:37:11 +00:00
|
|
|
$(CP) $(STAGING_DIR_HOST)/bin/pgen $(PKG_BUILD_DIR)/hostpgen
|
2012-03-29 14:11:26 +00:00
|
|
|
$(CP) $(STAGING_DIR_HOST)/bin/python$(PYTHON_VERSION) $(PKG_BUILD_DIR)/hostpython
|
2007-10-09 00:54:48 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--disable-shared \
|
|
|
|
--without-cxx-main \
|
|
|
|
--with-threads \
|
2012-03-29 14:11:26 +00:00
|
|
|
--with-system-ffi="$(STAGING_DIR)/usr" \
|
|
|
|
$(ENABLE_IPV6) \
|
2009-03-06 20:27:09 +00:00
|
|
|
ac_cv_have_chflags=no \
|
|
|
|
ac_cv_have_lchflags=no \
|
|
|
|
ac_cv_py_format_size_t=no \
|
2012-03-29 14:11:26 +00:00
|
|
|
ac_cv_have_long_long_format=yes \
|
|
|
|
ac_cv_buggy_getaddrinfo=no \
|
2007-10-09 00:54:48 +00:00
|
|
|
OPT="$(TARGET_CFLAGS)" \
|
|
|
|
)
|
2006-11-01 22:48:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2010-10-27 13:37:11 +00:00
|
|
|
$(INSTALL_DIR) $(2)/bin $(1)/usr/bin $(1)/usr/include $(1)/usr/lib
|
2010-10-30 21:20:36 +00:00
|
|
|
$(INSTALL_DIR) $(STAGING_DIR)/mk/
|
|
|
|
$(INSTALL_DATA) ./files/python-package.mk $(STAGING_DIR)/mk/
|
2007-12-27 02:12:26 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/python$(PYTHON_VERSION) \
|
2007-10-09 00:54:48 +00:00
|
|
|
$(1)/usr/include/
|
2007-12-27 02:12:26 +00:00
|
|
|
$(CP) \
|
2010-10-27 13:37:11 +00:00
|
|
|
$(STAGING_DIR_HOST)/lib/python$(PYTHON_VERSION) \
|
2007-12-27 02:12:26 +00:00
|
|
|
$(PKG_BUILD_DIR)/libpython$(PYTHON_VERSION).a \
|
2007-10-09 00:54:48 +00:00
|
|
|
$(1)/usr/lib/
|
2008-10-02 15:33:26 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION)/config \
|
|
|
|
$(1)/usr/lib/python$(PYTHON_VERSION)/
|
|
|
|
|
|
|
|
$(CP) \
|
2012-03-29 14:11:26 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/python$(PYTHON_VERSION) \
|
2008-10-02 15:33:26 +00:00
|
|
|
$(1)/usr/bin/hostpython
|
|
|
|
(cd $(2)/bin; \
|
|
|
|
ln -sf ../../usr/bin/hostpython python$(PYTHON_VERSION); \
|
|
|
|
ln -sf python$(PYTHON_VERSION) python)
|
|
|
|
|
|
|
|
$(CP) \
|
2010-10-27 13:37:11 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/python$(PYTHON_VERSION)-config \
|
2008-10-02 15:33:26 +00:00
|
|
|
$(2)/bin/
|
2009-03-06 20:27:09 +00:00
|
|
|
$(SED) 's,^#!.*,#!/usr/bin/env python$(PYTHON_VERSION),g' $(2)/bin/python$(PYTHON_VERSION)-config
|
2008-10-02 15:33:26 +00:00
|
|
|
|
|
|
|
(cd $(2)/bin; \
|
|
|
|
ln -sf python$(PYTHON_VERSION)-config python-config;)
|
2006-10-24 17:20:50 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-09 00:54:48 +00:00
|
|
|
define PyPackage/python/filespec
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/bsddb/test
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/config
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/ctypes/test
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/distutils/command/wininst-*.exe
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/distutils/tests
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/email/test
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/idlelib
|
2009-03-06 20:27:09 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/json/tests
|
2007-10-09 00:54:48 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-tk
|
2009-03-06 20:27:09 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/sqlite3
|
2007-10-09 00:54:48 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/test
|
2009-03-06 20:27:09 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib2to3
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-old
|
2011-11-20 13:42:14 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/bz2.so
|
2010-01-03 17:23:51 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/gdbm.so
|
2009-03-06 20:27:09 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sqlite3.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_ssl.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/pyexpat.so
|
2012-03-29 14:11:26 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/pydoc_data
|
2009-03-06 20:27:09 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/pydoc.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_ctypes_test.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_testcapi.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/__future__.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/_abcoll.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/abc.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/codecs.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/compileall.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/ConfigParser.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/copy.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/copy_reg.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/dis.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/encodings
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/fnmatch.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/genericpath.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/getopt.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/glob.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/hashlib.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/inspect.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/array.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/binascii.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/cStringIO.so
|
2012-06-11 20:33:30 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses_panel.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/dbm.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_bsddb.so
|
2009-03-06 20:27:09 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/fcntl.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/grp.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/itertools.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/math.so
|
2010-07-18 15:09:10 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_md5.so
|
2009-03-06 20:27:09 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/operator.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_random.so
|
2012-02-20 11:29:20 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/readline.so
|
2009-03-06 20:27:09 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/select.so
|
2010-07-18 15:09:10 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sha.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sha256.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sha512.so
|
2009-03-06 20:27:09 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_socket.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/strop.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_struct.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/syslog.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/time.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/unicodedata.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/linecache.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/md5.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/new.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/opcode.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/optparse.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/os.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/pickle.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/pickle.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/pkgutil.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/popen2.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/posixpath.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/py_compile.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/random.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/repr.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/re.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/sha.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/site.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/socket.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/sre_compile.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/sre_constants.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/sre_parse.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/sre.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/stat.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/StringIO.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/stringprep.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/string.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/struct.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/subprocess.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/tempfile.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/textwrap.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/tokenize.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/token.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/traceback.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/types.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/UserDict.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/warnings.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/weakref.py
|
2012-03-29 14:11:26 +00:00
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/_weakrefset.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/sysconfig.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/functools.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_functools.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/collections.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_collections.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/keyword.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/heapq.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_heapq.so
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/bisect.py
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_bisect.so
|
2007-10-09 00:54:48 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define PyPackage/python-mini/filespec
|
|
|
|
+|/usr/bin/python$(PYTHON_VERSION)
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/__future__.py
|
2009-03-06 20:27:09 +00:00
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/_abcoll.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/abc.py
|
2007-10-09 00:54:48 +00:00
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/codecs.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/compileall.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/ConfigParser.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/copy.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/copy_reg.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/dis.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/encodings
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/fnmatch.py
|
2009-03-06 20:27:09 +00:00
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/genericpath.py
|
2007-10-09 00:54:48 +00:00
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/getopt.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/glob.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/hashlib.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/inspect.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/array.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/binascii.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/cStringIO.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/fcntl.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/grp.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/itertools.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/math.so
|
2010-03-22 18:49:35 +00:00
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_md5.so
|
2007-10-09 00:54:48 +00:00
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/operator.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_random.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/select.so
|
2010-03-22 18:49:35 +00:00
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sha.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sha256.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sha512.so
|
2007-10-09 00:54:48 +00:00
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_socket.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/strop.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_struct.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/syslog.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/time.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/unicodedata.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/linecache.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/md5.py
|
2009-03-06 20:27:09 +00:00
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/new.py
|
2007-10-09 00:54:48 +00:00
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/opcode.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/optparse.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/os.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/pickle.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/pickle.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/pkgutil.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/popen2.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/posixpath.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/py_compile.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/random.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/repr.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/re.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/sha.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/site.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/socket.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/sre_compile.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/sre_constants.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/sre_parse.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/sre.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/stat.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/StringIO.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/stringprep.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/string.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/struct.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/subprocess.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/tempfile.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/textwrap.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/tokenize.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/token.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/traceback.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/types.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/UserDict.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/warnings.py
|
2009-03-06 20:27:09 +00:00
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/weakref.py
|
2012-03-29 14:11:26 +00:00
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/_weakrefset.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/config/Makefile
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/sysconfig.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/functools.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_functools.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/collections.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_collections.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/keyword.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/heapq.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_heapq.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/bisect.py
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_bisect.so
|
2010-10-18 18:37:41 +00:00
|
|
|
+|/usr/include/python$(PYTHON_VERSION)/pyconfig.h
|
2007-10-09 00:54:48 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define PyPackage/python-mini/install
|
|
|
|
ln -sf python$(PYTHON_VERSION) $(1)/usr/bin/python
|
|
|
|
endef
|
|
|
|
|
2008-05-03 00:13:04 +00:00
|
|
|
define PyPackage/python-doc/filespec
|
2012-03-29 14:11:26 +00:00
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/pydoc_data
|
2007-10-09 00:54:48 +00:00
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/pydoc.py
|
|
|
|
endef
|
|
|
|
|
2011-11-20 13:42:14 +00:00
|
|
|
define PyPackage/python-bzip2/filespec
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/bz2.so
|
|
|
|
endef
|
|
|
|
|
2007-10-09 00:54:48 +00:00
|
|
|
define PyPackage/python-expat/filespec
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/pyexpat.so
|
|
|
|
endef
|
|
|
|
|
2010-07-18 15:09:10 +00:00
|
|
|
define PyPackage/python-gzip/filespec
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/gzip.py
|
|
|
|
endef
|
|
|
|
|
2007-10-09 00:54:48 +00:00
|
|
|
define PyPackage/python-openssl/filespec
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_ssl.so
|
|
|
|
endef
|
|
|
|
|
2010-07-18 15:09:10 +00:00
|
|
|
define PyPackage/python-shutil/filespec
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/shutil.py
|
|
|
|
endef
|
|
|
|
|
2009-05-20 16:09:36 +00:00
|
|
|
define PyPackage/python-sqlite3/filespec
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/sqlite3
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sqlite3.so
|
|
|
|
endef
|
|
|
|
|
2010-01-03 17:23:51 +00:00
|
|
|
define PyPackage/python-gdbm/filespec
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/gdbm.so
|
|
|
|
endef
|
|
|
|
|
2012-03-30 13:24:08 +00:00
|
|
|
define PyPackage/python-readline/filespec
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/readline.so
|
|
|
|
endef
|
|
|
|
|
2012-06-11 20:33:30 +00:00
|
|
|
define PyPackage/python-ncurses/filespec
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses.so
|
|
|
|
+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses_panel.so
|
|
|
|
endef
|
|
|
|
|
2010-10-27 13:37:11 +00:00
|
|
|
define Host/Configure
|
|
|
|
-$(MAKE) -C $(HOST_BUILD_DIR) distclean
|
|
|
|
(cd $(HOST_BUILD_DIR); autoreconf --force --install || exit 0)
|
|
|
|
(cd $(HOST_BUILD_DIR); \
|
|
|
|
rm -rf config.cache; \
|
|
|
|
CONFIG_SITE= \
|
|
|
|
OPT="$(HOST_CFLAGS)" \
|
|
|
|
./configure --without-cxx-main --without-threads --prefix=$(STAGING_DIR_HOST); \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Compile
|
|
|
|
$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
|
|
|
|
python Parser/pgen
|
|
|
|
$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
|
|
|
|
HOSTPYTHON=$(HOST_BUILD_DIR)/python \
|
|
|
|
sharedmods
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) \
|
|
|
|
HOSTPYTHON=$(HOST_BUILD_DIR)/python \
|
|
|
|
install
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/Parser/pgen $(STAGING_DIR_HOST)/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|
|
|
|
|
2007-10-09 00:54:48 +00:00
|
|
|
$(eval $(call PyPackage,python))
|
|
|
|
$(eval $(call PyPackage,python-mini))
|
|
|
|
$(eval $(call PyPackage,python-doc))
|
2011-11-20 13:42:14 +00:00
|
|
|
$(eval $(call PyPackage,python-bzip2))
|
2007-10-09 00:54:48 +00:00
|
|
|
$(eval $(call PyPackage,python-expat))
|
2010-07-18 15:09:10 +00:00
|
|
|
$(eval $(call PyPackage,python-gzip))
|
2007-10-09 00:54:48 +00:00
|
|
|
$(eval $(call PyPackage,python-openssl))
|
2010-07-18 15:09:10 +00:00
|
|
|
$(eval $(call PyPackage,python-shutil))
|
2009-05-12 10:25:17 +00:00
|
|
|
$(eval $(call PyPackage,python-sqlite3))
|
2010-01-03 17:23:51 +00:00
|
|
|
$(eval $(call PyPackage,python-gdbm))
|
2012-03-30 13:24:08 +00:00
|
|
|
$(eval $(call PyPackage,python-readline))
|
2012-06-11 20:33:30 +00:00
|
|
|
$(eval $(call PyPackage,python-ncurses))
|
2007-10-09 00:54:48 +00:00
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
$(eval $(call BuildPackage,python))
|
|
|
|
$(eval $(call BuildPackage,python-mini))
|
|
|
|
$(eval $(call BuildPackage,python-doc))
|
2011-11-20 13:42:14 +00:00
|
|
|
$(eval $(call BuildPackage,python-bzip2))
|
2007-10-21 10:20:01 +00:00
|
|
|
$(eval $(call BuildPackage,python-expat))
|
2010-07-18 15:09:10 +00:00
|
|
|
$(eval $(call BuildPackage,python-gzip))
|
2007-10-21 10:20:01 +00:00
|
|
|
$(eval $(call BuildPackage,python-openssl))
|
2010-07-18 15:09:10 +00:00
|
|
|
$(eval $(call BuildPackage,python-shutil))
|
2009-05-12 10:25:17 +00:00
|
|
|
$(eval $(call BuildPackage,python-sqlite3))
|
2010-01-03 17:23:51 +00:00
|
|
|
$(eval $(call BuildPackage,python-gdbm))
|
2012-03-30 13:24:08 +00:00
|
|
|
$(eval $(call BuildPackage,python-readline))
|
2012-06-11 20:33:30 +00:00
|
|
|
$(eval $(call BuildPackage,python-ncurses))
|