From: hamish at uclibc.org <hamish@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/python
Date: Tue, 5 Feb 2008 16:55:06 -0800 (PST) [thread overview]
Message-ID: <20080206005506.8499E120108@busybox.net> (raw)
Author: hamish
Date: 2008-02-05 16:55:05 -0800 (Tue, 05 Feb 2008)
New Revision: 20947
Log:
Added configuration item to control whether development headers and libraries are installed on the target
Removed some additional files if optional modules are disabled
Modified:
trunk/buildroot/package/python/Config.in
trunk/buildroot/package/python/python.mk
Changeset:
Modified: trunk/buildroot/package/python/Config.in
===================================================================
--- trunk/buildroot/package/python/Config.in 2008-02-05 23:04:09 UTC (rev 20946)
+++ trunk/buildroot/package/python/Config.in 2008-02-06 00:55:05 UTC (rev 20947)
@@ -6,6 +6,14 @@
http://www.python.org/
+config BR2_PACKAGE_PYTHON_DEV
+ depends on BR2_PACKAGE_PYTHON
+ bool "development files on target"
+ default n
+ help
+ If enabled, development files (headers and static libpython) will be
+ installed on the target.
+
choice
prompt "Module format to install"
depends on BR2_PACKAGE_PYTHON
Modified: trunk/buildroot/package/python/python.mk
===================================================================
--- trunk/buildroot/package/python/python.mk 2008-02-05 23:04:09 UTC (rev 20946)
+++ trunk/buildroot/package/python/python.mk 2008-02-06 00:55:05 UTC (rev 20947)
@@ -4,6 +4,7 @@
#
#############################################################
PYTHON_VERSION=2.4.2
+PYTHON_VERSION_SHORT=2.4
PYTHON_SOURCE:=Python-$(PYTHON_VERSION).tar.bz2
PYTHON_SITE:=http://python.org/ftp/python/$(PYTHON_VERSION)
PYTHON_DIR:=$(BUILD_DIR)/Python-$(PYTHON_VERSION)
@@ -136,13 +137,31 @@
find $(TARGET_DIR)/usr/lib/ -name '*.pyo' -exec rm {} \; && \
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc \
- $(TARGET_DIR)/usr/lib/python*/test
+ $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_SHORT)/test
+ cp -dpr $(TARGET_DIR)/usr/include/python$(PYTHON_VERSION_SHORT) $(STAGING_DIR)/usr/include/
+ mkdir -p $(STAGING_DIR)/usr/lib/python$(PYTHON_VERSION_SHORT)
+ cp -dpr $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_SHORT)/config $(STAGING_DIR)/usr/lib/python$(PYTHON_VERSION_SHORT)/
+
ifeq ($(BR2_PACKAGE_PYTHON_PY_ONLY),y)
find $(TARGET_DIR)/usr/lib/ -name '*.pyc' -exec rm {} \;
endif
ifeq ($(BR2_PACKAGE_PYTHON_PYC_ONLY),y)
find $(TARGET_DIR)/usr/lib/ -name '*.py' -exec rm {} \;
endif
+ifneq ($(BR2_PACKAGE_PYTHON_DEV),y)
+ rm -rf $(TARGET_DIR)/usr/include/python$(PYTHON_VERSION_SHORT)
+ rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_SHORT)/config
+ find $(TARGET_DIR)/usr/lib/ -name '*.py' -exec rm {} \;
+endif
+ifneq ($(BR2_PACKAGE_PYTHON_BSDDB),y)
+ rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_SHORT)/bsddb
+endif
+ifneq ($(BR2_PACKAGE_PYTHON_CURSES),y)
+ rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_SHORT)/curses
+endif
+ifneq ($(BR2_PACKAGE_PYTHON_TKINTER),y)
+ rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_SHORT)/lib-tk
+endif
python: uclibc $(PYTHON_DEPS) $(TARGET_DIR)/$(PYTHON_TARGET_BINARY)
next reply other threads:[~2008-02-06 0:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-06 0:55 hamish at uclibc.org [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-01-15 6:28 [Buildroot] svn commit: trunk/buildroot/package/python ulf at uclibc.org
2009-01-15 8:57 ` Peter Korsgaard
2009-01-15 14:01 ` Hamish Moffatt
2009-01-15 20:11 ` Ulf Samuelsson
2009-01-15 23:10 ` Hamish Moffatt
2009-01-15 23:16 ` Markus Heidelberg
2009-01-16 6:45 ` Ulf Samuelsson
2008-10-30 17:21 wberrier at uclibc.org
2008-10-08 5:03 hamish at uclibc.org
2008-09-11 1:59 hamish at uclibc.org
2008-09-08 7:26 hamish at uclibc.org
2008-09-02 0:54 hamish at uclibc.org
2008-06-16 11:15 jacmet at uclibc.org
2008-01-17 12:42 vanokuten at uclibc.org
2007-01-23 17:18 aldot at uclibc.org
2007-01-22 18:48 aldot at uclibc.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080206005506.8499E120108@busybox.net \
--to=hamish@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox