Skip to contentSkip to conversation

python external modules: reorder menu entry

PATCH New Gustavo Zacarias 2 participants 4 messages Jul 10, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 python external modules: reorder menu entry

Reorder the external python modules menu entry so that it belongs under python(2) and not under python3 to avoid confusion.

---
 package/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/Config.in +1 -1
index c58f61c..fbbb6e8 100644
@@ -344,7 +344,6 @@ endmenu
 endif
 source "package/php/Config.in"
 source "package/python/Config.in"
-source "package/python3/Config.in"
 if BR2_PACKAGE_PYTHON
 menu "external python modules"
 source "package/python-bottle/Config.in"
@@ -362,6 +361,7 @@ source "package/python-setuptools/Config.in"
 source "package/python-thrift/Config.in"
 endmenu
 endif
+source "package/python3/Config.in"
 source "package/ruby/Config.in"
 source "package/tcl/Config.in"
 if BR2_PACKAGE_TCL
Signature · 1 line
1.8.1.5
#1 lore raw

PATCH 2/3 python: remove idle sample

Also move smtpd.py removal to the global remove useless files define.

---
 package/python/python.mk | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
package/python/python.mk +4 -7
index 975d6f4..ecea638 100644
@@ -143,21 +143,18 @@ endef
 
 PYTHON_POST_INSTALL_STAGING_HOOKS += PYTHON_FIXUP_LIBDIR
 
-# Bad shebang, normally not used
-define PYTHON_REMOVE_SMTPD
-	rm -f $(TARGET_DIR)/usr/bin/smtpd.py
-endef
-
-PYTHON_POST_INSTALL_TARGET_HOOKS += PYTHON_REMOVE_SMTPD
-
 #
 # Remove useless files. In the config/ directory, only the Makefile
 # and the pyconfig.h files are needed at runtime.
 #
+# idle & smtpd.py have bad shebangs and are mostly samples
+#
 define PYTHON_REMOVE_USELESS_FILES
+	rm -f $(TARGET_DIR)/usr/bin/idle
 	rm -f $(TARGET_DIR)/usr/bin/python$(PYTHON_VERSION_MAJOR)-config
 	rm -f $(TARGET_DIR)/usr/bin/python2-config
 	rm -f $(TARGET_DIR)/usr/bin/python-config
+	rm -f $(TARGET_DIR)/usr/bin/smtpd.py
 	for i in `find $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/config/ \
 		-type f -not -name pyconfig.h -a -not -name Makefile` ; do \
 		rm -f $$i ; \
Signature · 1 line
1.8.1.5
#2 lore raw

PATCH 3/3 python3: remove smtpd.py.3 sample

In reply to Gustavo Zacarias
---
 package/python3/python3.mk | 1 +
 1 file changed, 1 insertion(+)
package/python3/python3.mk +1 -0
index ed79f8e..036d1ac 100644
@@ -141,6 +141,7 @@ define PYTHON3_REMOVE_USELESS_FILES
 	rm -f $(TARGET_DIR)/usr/bin/python$(PYTHON3_VERSION_MAJOR)-config
 	rm -f $(TARGET_DIR)/usr/bin/python$(PYTHON3_VERSION_MAJOR)m-config
 	rm -f $(TARGET_DIR)/usr/bin/python3-config
+	rm -f $(TARGET_DIR)/usr/bin/smtpd.py.3
 	for i in `find $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/config-3.3m/ \
 		-type f -not -name pyconfig.h -a -not -name Makefile` ; do \
 		rm -f $$i ; \
Signature · 1 line
1.8.1.5
#3 lore raw

PATCH 1/3 python external modules: reorder menu entry

In reply to Gustavo Zacarias
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> Reorder the external python modules menu entry so that it Gustavo> belongs under python(2) and not under python3 to avoid Gustavo> confusion.

Committed series, thanks.

Signature · 1 line
Bye, Peter Korsgaard