python external modules: reorder menu entry
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.
Signed-off-by Gustavo Zacarias <[email protected]>
--- package/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/Config.in +1 -1
@@ -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
PATCH 2/3 python: remove idle sample
Also move smtpd.py removal to the global remove useless files define.
Signed-off-by Gustavo Zacarias <[email protected]>
--- package/python/python.mk | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
package/python/python.mk +4 -7
@@ -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
PATCH 3/3 python3: remove smtpd.py.3 sample
In reply to Gustavo ZacariasSigned-off-by Gustavo Zacarias <[email protected]>
--- package/python3/python3.mk | 1 + 1 file changed, 1 insertion(+)
package/python3/python3.mk +1 -0
@@ -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
PATCH 1/3 python external modules: reorder menu entry
In reply to Gustavo ZacariasQuoted 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