* [ptxdist] [PATCH 1/5] Python: just add some help text
2011-12-25 18:20 [ptxdist] [PATCH] Re-work the Python menu a little bit Juergen Beisert
@ 2011-12-25 18:20 ` Juergen Beisert
2011-12-25 18:20 ` [ptxdist] [PATCH 2/5] Python: prepare to collect all modules at one single place Juergen Beisert
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Juergen Beisert @ 2011-12-25 18:20 UTC (permalink / raw)
To: ptxdist
Nothing really special, just to make sure what "IDLE" means in this context
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
rules/python.in | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/rules/python.in b/rules/python.in
index c20d3d6..015f5a0 100644
--- a/rules/python.in
+++ b/rules/python.in
@@ -54,6 +54,9 @@ config PYTHON_LIBTK
config PYTHON_IDLELIB
bool
prompt "Include idlelib packages"
+ help
+ IDLE, an Integrated Development Environment for Python written in
+ 100% Python
config PYTHON_DISTUTILS
bool
--
1.7.7.3
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ptxdist] [PATCH 2/5] Python: prepare to collect all modules at one single place
2011-12-25 18:20 [ptxdist] [PATCH] Re-work the Python menu a little bit Juergen Beisert
2011-12-25 18:20 ` [ptxdist] [PATCH 1/5] Python: just add some help text Juergen Beisert
@ 2011-12-25 18:20 ` Juergen Beisert
2011-12-25 18:20 ` [ptxdist] [PATCH 3/5] Python/Modules: move modules to the single menu Juergen Beisert
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Juergen Beisert @ 2011-12-25 18:20 UTC (permalink / raw)
To: ptxdist
To easify enable module extension to Python, all modules spread around PTXdist
will now be collected at one single place.
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
rules/python.in | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/rules/python.in b/rules/python.in
index 015f5a0..dbcb178 100644
--- a/rules/python.in
+++ b/rules/python.in
@@ -63,3 +63,7 @@ config PYTHON_DISTUTILS
prompt "Include distutils packages"
endif
+
+menu "python Extra Modules "
+source "generated/python.in"
+endmenu
--
1.7.7.3
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ptxdist] [PATCH 3/5] Python/Modules: move modules to the single menu
2011-12-25 18:20 [ptxdist] [PATCH] Re-work the Python menu a little bit Juergen Beisert
2011-12-25 18:20 ` [ptxdist] [PATCH 1/5] Python: just add some help text Juergen Beisert
2011-12-25 18:20 ` [ptxdist] [PATCH 2/5] Python: prepare to collect all modules at one single place Juergen Beisert
@ 2011-12-25 18:20 ` Juergen Beisert
2011-12-25 18:20 ` [ptxdist] [PATCH 4/5] Fix the Python based 'flup' package Juergen Beisert
2011-12-25 18:20 ` [ptxdist] [PATCH 5/5] Python/pyserial: add serial/UART module feature Juergen Beisert
4 siblings, 0 replies; 6+ messages in thread
From: Juergen Beisert @ 2011-12-25 18:20 UTC (permalink / raw)
To: ptxdist
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
rules/dbus-python.in | 2 +-
rules/flup.in | 2 +-
rules/python-imaging.in | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/rules/dbus-python.in b/rules/dbus-python.in
index d2b5cdc..290dded 100644
--- a/rules/dbus-python.in
+++ b/rules/dbus-python.in
@@ -1,4 +1,4 @@
-## SECTION=scripting_languages
+## SECTION=python
config DBUS_PYTHON
tristate
diff --git a/rules/flup.in b/rules/flup.in
index a71d9eb..c10e38a 100644
--- a/rules/flup.in
+++ b/rules/flup.in
@@ -1,4 +1,4 @@
-## SECTION=networking
+## SECTION=python
config FLUP
tristate
diff --git a/rules/python-imaging.in b/rules/python-imaging.in
index 953f279..c64d79e 100644
--- a/rules/python-imaging.in
+++ b/rules/python-imaging.in
@@ -1,4 +1,4 @@
-## SECTION=multimedia_libs
+## SECTION=python
menuconfig PYTHON_IMAGING
tristate
--
1.7.7.3
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ptxdist] [PATCH 4/5] Fix the Python based 'flup' package.
2011-12-25 18:20 [ptxdist] [PATCH] Re-work the Python menu a little bit Juergen Beisert
` (2 preceding siblings ...)
2011-12-25 18:20 ` [ptxdist] [PATCH 3/5] Python/Modules: move modules to the single menu Juergen Beisert
@ 2011-12-25 18:20 ` Juergen Beisert
2011-12-25 18:20 ` [ptxdist] [PATCH 5/5] Python/pyserial: add serial/UART module feature Juergen Beisert
4 siblings, 0 replies; 6+ messages in thread
From: Juergen Beisert @ 2011-12-25 18:20 UTC (permalink / raw)
To: ptxdist
Adapt and simplyfy the rule file for this package.
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
rules/flup.make | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/rules/flup.make b/rules/flup.make
index 976c282..ccb9fd1 100644
--- a/rules/flup.make
+++ b/rules/flup.make
@@ -20,7 +20,7 @@ FLUP_VERSION := 1.0.2
FLUP_MD5 := 24dad7edc5ada31dddd49456ee8d5254
FLUP := flup-$(FLUP_VERSION)
FLUP_SUFFIX := tar.gz
-FLUP_URL := http://www.saddi.com/software/flup/dist/$(FLUP).$(FLUP_SUFFIX)
+FLUP_URL := http://pypi.python.org/packages/source/f/flup/$(FLUP).$(FLUP_SUFFIX)
FLUP_SOURCE := $(SRCDIR)/$(FLUP).$(FLUP_SUFFIX)
FLUP_DIR := $(BUILDDIR)/$(FLUP)
FLUP_LICENSE := unknown
@@ -47,6 +47,9 @@ $(STATEDIR)/flup.compile:
$(STATEDIR)/flup.install:
@$(call targetinfo)
+ @cd $(FLUP_DIR) && \
+ $(FLUP_PATH) $(FLUP_MAKE_ENV) \
+ python setup.py install --root=$(FLUP_PKGDIR) --prefix=/usr
@$(call touch)
# ----------------------------------------------------------------------------
@@ -62,10 +65,14 @@ $(STATEDIR)/flup.targetinstall:
@$(call install_fixup, flup,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
@$(call install_fixup, flup,DESCRIPTION,missing)
- for i in $(shell cd $(FLUP_DIR)/flup && find . -name "*.py"); do \
- $(call install_copy, flup, 0, 0, 0644, \
- $(FLUP_DIR)/flup/$$i, \
- $(PYTHON_SITEPACKAGES)/flup/$$i) \
+ @$(call install_copy, flup, 0, 0, 0755, $(PYTHON_SITEPACKAGES))
+ @$(call install_copy, flup, 0, 0, 0755, $(PYTHON_SITEPACKAGES)/flup)
+ @$(call install_copy, flup, 0, 0, 0755, $(PYTHON_SITEPACKAGES)/flup/client)
+ @$(call install_copy, flup, 0, 0, 0755, $(PYTHON_SITEPACKAGES)/flup/server)
+
+ for file in $(shell cd $(FLUP_PKGDIR) && find . -name "*.pyc"); \
+ do \
+ $(call install_copy, flup, 0, 0, 0644, -, /$$file) \
done
@$(call install_finish, flup)
--
1.7.7.3
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ptxdist] [PATCH 5/5] Python/pyserial: add serial/UART module feature
2011-12-25 18:20 [ptxdist] [PATCH] Re-work the Python menu a little bit Juergen Beisert
` (3 preceding siblings ...)
2011-12-25 18:20 ` [ptxdist] [PATCH 4/5] Fix the Python based 'flup' package Juergen Beisert
@ 2011-12-25 18:20 ` Juergen Beisert
4 siblings, 0 replies; 6+ messages in thread
From: Juergen Beisert @ 2011-12-25 18:20 UTC (permalink / raw)
To: ptxdist
Add operating system independent UART handling to the Python interpreter.
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
rules/pyserial.in | 41 +++++++++++++++++++
rules/pyserial.make | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 152 insertions(+), 0 deletions(-)
create mode 100644 rules/pyserial.in
create mode 100644 rules/pyserial.make
diff --git a/rules/pyserial.in b/rules/pyserial.in
new file mode 100644
index 0000000..c67a69b
--- /dev/null
+++ b/rules/pyserial.in
@@ -0,0 +1,41 @@
+## SECTION=python
+
+menuconfig PYSERIAL
+ tristate
+ select PYTHON
+ prompt "pyserial "
+ help
+ This module encapsulates the access for the serial port. It provides
+ backends for Python running on Windows, Linux, BSD (possibly any
+ POSIX compliant system), Jython and IronPython (.NET and Mono). The
+ module named "serial" automatically selects the appropriate backend.
+
+ - Project Homepage: http://pyserial.sourceforge.net
+ - Project page on SourceForge: http://sourceforge.net/projects/pyserial/
+ - SVN repository: http://sourceforge.net/svn/?group_id=46487
+ - Download Page: http://sourceforge.net/project/showfiles.php?group_id=46487
+
+if PYSERIAL
+
+config PYSERIAL_MINITERM
+ bool
+ prompt "Install 'miniterm'"
+ help
+ Install the miniterm script coming with this package.
+
+config PYSERIAL_EXAMPLES
+ bool
+ prompt "Install usage examples"
+ help
+ Install the examples coming with this package (for example a serial
+ to network forwarder).
+
+config PYSERIAL_TESTS
+ bool
+ prompt "Install test scripts"
+ help
+ Install the test scripts coming with this package. They could be useful
+ to check if the installation is complete and working. So, they are
+ more for development or debugging. Nothing really required.
+
+endif
diff --git a/rules/pyserial.make b/rules/pyserial.make
new file mode 100644
index 0000000..3100129
--- /dev/null
+++ b/rules/pyserial.make
@@ -0,0 +1,111 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by Juergen Beisert <jbe@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYSERIAL) += pyserial
+
+#
+# Paths and names
+#
+PYSERIAL_VERSION := 2.6
+PYSERIAL_MD5 := cde799970b7c1ce1f7d6e9ceebe64c98
+PYSERIAL := pyserial-$(PYSERIAL_VERSION)
+PYSERIAL_SUFFIX := tar.gz
+PYSERIAL_URL := http://pypi.python.org/packages/source/p/pyserial/$(PYSERIAL).$(PYSERIAL_SUFFIX)
+PYSERIAL_SOURCE := $(SRCDIR)/$(PYSERIAL).$(PYSERIAL_SUFFIX)
+PYSERIAL_DIR := $(BUILDDIR)/$(PYSERIAL)
+PYSERIAL_LICENSE := BSD
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYSERIAL_PATH := PATH=$(CROSS_PATH)
+PYSERIAL_CONF_TOOL := NO
+PYSERIAL_MAKE_ENV := $(CROSS_ENV)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/pyserial.compile:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Instal
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/pyserial.install:
+ @$(call targetinfo)
+ @cd $(PYSERIAL_DIR) && \
+ $(PYSERIAL_PATH) $(PYSERIAL_MAKE_ENV) \
+ python setup.py install --root=$(PYSERIAL_PKGDIR) --prefix=/usr
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/pyserial.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, pyserial)
+ @$(call install_fixup, pyserial,PRIORITY,optional)
+ @$(call install_fixup, pyserial,SECTION,base)
+ @$(call install_fixup, pyserial,AUTHOR,"Juergen Beisert <jbe@pengutronix.de>")
+ @$(call install_fixup, pyserial,DESCRIPTION, "Serial Communication for Python")
+
+ @$(call install_copy, pyserial, 0, 0, 0755, $(PYTHON_SITEPACKAGES))
+ @$(call install_copy, pyserial, 0, 0, 0755, $(PYTHON_SITEPACKAGES)/serial)
+ @$(call install_copy, pyserial, 0, 0, 0755, $(PYTHON_SITEPACKAGES)/serial/tools)
+ @$(call install_copy, pyserial, 0, 0, 0755, $(PYTHON_SITEPACKAGES)/serial/urlhandler)
+
+ @for file in $(shell cd $(PYSERIAL_PKGDIR) && find . -name "*.pyc"); \
+ do \
+ $(call install_copy, pyserial, 0, 0, 0644, -, /$$file); \
+ done
+
+# note: the setup.py also installs the miniterm.py script, but with a really
+# broken path to the python interpreter. As a workaround we use the plain script
+# from the build directory instead
+ifdef PTXCONF_PYSERIAL_MINITERM
+ $(call install_copy, pyserial, 0, 0, 0755, \
+ $(PYSERIAL_DIR)/serial/tools/miniterm.py, /usr/bin/miniterm.py)
+endif
+
+# there are some examples that could be useful to check and understand this package
+ifdef PTXCONF_PYSERIAL_EXAMPLES
+ @for file in run_all_tests.py test_high_load.py test.py test_url.py \
+ test_advanced.py test_iolib.py test_readline.py; \
+ do \
+ $(call install_copy, pyserial, 0, 0, 0755, \
+ $(PYSERIAL_DIR)/test/$$file, /usr/bin/$$file); \
+ done
+endif
+
+# there are some test scripts that could be useful to check the installation
+ifdef PTXCONF_PYSERIAL_TESTS
+ @for file in enhancedserial.py scanlinux.py setup-miniterm-py2exe.py \
+ tcp_serial_redirect.py port_publisher.py scan.py \
+ setup-rfc2217_server-py2exe.py wxSerialConfigDialog.py \
+ rfc2217_server.py scanwin32.py setup-wxTerminal-py2exe.py; \
+ do \
+ $(call install_copy, pyserial, 0, 0, 0755, \
+ $(PYSERIAL_DIR)/examples/$$file, /usr/bin/$$file); \
+ done
+endif
+ @$(call install_finish, pyserial)
+
+ @$(call touch)
+
+# vim: syntax=make
--
1.7.7.3
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread