* [meta-python][jethro][PATCH 1/4] python-enum34: Error Fix for recipes depend on python-enum34
@ 2016-01-04 10:12 Li Xin
2016-01-04 10:12 ` [meta-python][jethro][PATCH 2/4] python-pyasn1: Error fix for recipes depend on python-pyasn1 Li Xin
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Li Xin @ 2016-01-04 10:12 UTC (permalink / raw)
To: openembedded-devel
If you bitbake recipes which depends on python-enum34 such as
python-cryptography. And also your network is not very well.
Error will occur as following:
Download error on https://pypi.python.org/simple/enum34/:
[Errno -5] No address associated with hostname -- Some packages may not be found!
Couldn't find index page for 'enum34' (maybe misspelled?)
No local packages or download links found for enum34
So add do_compile_append() to fix it.
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
---
.../python-enum34/0001-setup.py-Bug-Fix.patch | 31 ++++++++++++++++++++++
.../recipes-devtools/python/python-enum34_1.0.4.bb | 11 ++++++++
2 files changed, 42 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python-enum34/0001-setup.py-Bug-Fix.patch
diff --git a/meta-python/recipes-devtools/python/python-enum34/0001-setup.py-Bug-Fix.patch b/meta-python/recipes-devtools/python/python-enum34/0001-setup.py-Bug-Fix.patch
new file mode 100644
index 0000000..2cffee7
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-enum34/0001-setup.py-Bug-Fix.patch
@@ -0,0 +1,31 @@
+From bfb7ac12ea7b6e821487fdf86a11c95cfbaf9a57 Mon Sep 17 00:00:00 2001
+From: Li Xin <lixin.fnst@cn.fujitsu.com>
+Date: Thu, 17 Dec 2015 17:20:29 +0900
+Subject: [PATCH] setup.py: Bug Fix
+
+| warnings.warn(msg)
+| usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
+| or: setup.py --help [cmd1 cmd2 ...]
+| or: setup.py --help-commands
+| or: setup.py cmd --help
+|
+| error: invalid command 'bdist_egg'
+
+Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
+---
+ setup.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/setup.py b/setup.py
+index ecb4944..88d78c0 100644
+--- a/setup.py
++++ b/setup.py
+@@ -1,4 +1,5 @@
+ import os
++import setuptools
+ import sys
+ from distutils.core import setup
+
+--
+1.8.4.2
+
diff --git a/meta-python/recipes-devtools/python/python-enum34_1.0.4.bb b/meta-python/recipes-devtools/python/python-enum34_1.0.4.bb
index 2ef5df1..1512845 100644
--- a/meta-python/recipes-devtools/python/python-enum34_1.0.4.bb
+++ b/meta-python/recipes-devtools/python/python-enum34_1.0.4.bb
@@ -6,3 +6,14 @@ SRC_URI[md5sum] = "ac80f432ac9373e7d162834b264034b6"
SRC_URI[sha256sum] = "d3c19f26a6a34629c18c775f59dfc5dd595764c722b57a2da56ebfb69b94e447"
inherit pypi
+
+SRC_URI += "file://0001-setup.py-Bug-Fix.patch"
+
+do_compile_append() {
+ export BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS}
+ ${PYTHON} setup.py -q bdist_egg --dist-dir ./
+}
+
+do_install_append() {
+ install -m 0644 ${S}/*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/
+}
--
1.8.4.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [meta-python][jethro][PATCH 2/4] python-pyasn1: Error fix for recipes depend on python-pyasn1
2016-01-04 10:12 [meta-python][jethro][PATCH 1/4] python-enum34: Error Fix for recipes depend on python-enum34 Li Xin
@ 2016-01-04 10:12 ` Li Xin
2016-01-04 14:11 ` Martin Jansa
2016-01-04 10:12 ` [meta-python][jethro][PATCH 3/4] python-six: Error fix for recipes depend on python-six Li Xin
2016-01-04 10:12 ` [meta-python][jethro][PATCH 4/4] python-cryptography: Error fix Li Xin
2 siblings, 1 reply; 6+ messages in thread
From: Li Xin @ 2016-01-04 10:12 UTC (permalink / raw)
To: openembedded-devel
If you bitbake recipes which depends on python-pyasn1 such as
python-cryptography. And also your network is not very well.
Error will occur as following:
Download error on https://pypi.python.org/simple/pyasn1/:
[Errno -5] No address associated with hostname -- Some packages may not be found!
Couldn't find index page for 'pyasn1' (maybe misspelled?)
No local packages or download links found for pyasn1
So add do_compile_append() to fix it.
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
---
meta-python/recipes-devtools/python/python-pyasn1_0.1.7.bb | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/meta-python/recipes-devtools/python/python-pyasn1_0.1.7.bb b/meta-python/recipes-devtools/python/python-pyasn1_0.1.7.bb
index 0fe6909..5259b1c 100644
--- a/meta-python/recipes-devtools/python/python-pyasn1_0.1.7.bb
+++ b/meta-python/recipes-devtools/python/python-pyasn1_0.1.7.bb
@@ -14,3 +14,12 @@ S = "${WORKDIR}/pyasn1-${PV}"
inherit setuptools
RDEPENDS_${PN} += "python-lang python-shell"
+
+do_compile_append() {
+ export BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS}
+ ${PYTHON} setup.py -q bdist_egg --dist-dir ./
+}
+
+do_install_append() {
+ install -m 0644 ${S}/*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/
+}
--
1.8.4.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [meta-python][jethro][PATCH 3/4] python-six: Error fix for recipes depend on python-six
2016-01-04 10:12 [meta-python][jethro][PATCH 1/4] python-enum34: Error Fix for recipes depend on python-enum34 Li Xin
2016-01-04 10:12 ` [meta-python][jethro][PATCH 2/4] python-pyasn1: Error fix for recipes depend on python-pyasn1 Li Xin
@ 2016-01-04 10:12 ` Li Xin
2016-01-04 10:12 ` [meta-python][jethro][PATCH 4/4] python-cryptography: Error fix Li Xin
2 siblings, 0 replies; 6+ messages in thread
From: Li Xin @ 2016-01-04 10:12 UTC (permalink / raw)
To: openembedded-devel
If you bitbake recipes which depends on python-six such as
python-cryptography. And also your network is not very well.
Error will occur as following:
Download error on https://pypi.python.org/simple/six/:
[Errno -5] No address associated with hostname -- Some packages may not be found!
Couldn't find index page for 'six' (maybe misspelled?)
No local packages or download links found for six
So add do_compile_append() to fix it.
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
---
meta-python/recipes-devtools/python/python-six_1.9.0.bb | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/meta-python/recipes-devtools/python/python-six_1.9.0.bb b/meta-python/recipes-devtools/python/python-six_1.9.0.bb
index aa96dc9..c6575f3 100644
--- a/meta-python/recipes-devtools/python/python-six_1.9.0.bb
+++ b/meta-python/recipes-devtools/python/python-six_1.9.0.bb
@@ -6,3 +6,11 @@ SRC_URI[md5sum] = "476881ef4012262dfc8adc645ee786c4"
SRC_URI[sha256sum] = "e24052411fc4fbd1f672635537c3fc2330d9481b18c0317695b46259512c91d5"
inherit pypi
+
+do_compile_append() {
+ export BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS}
+ ${PYTHON} setup.py -q bdist_egg --dist-dir ./
+}
+do_install_append() {
+ install -m 0644 ${S}/*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/
+}
--
1.8.4.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [meta-python][jethro][PATCH 4/4] python-cryptography: Error fix
2016-01-04 10:12 [meta-python][jethro][PATCH 1/4] python-enum34: Error Fix for recipes depend on python-enum34 Li Xin
2016-01-04 10:12 ` [meta-python][jethro][PATCH 2/4] python-pyasn1: Error fix for recipes depend on python-pyasn1 Li Xin
2016-01-04 10:12 ` [meta-python][jethro][PATCH 3/4] python-six: Error fix for recipes depend on python-six Li Xin
@ 2016-01-04 10:12 ` Li Xin
2016-01-04 14:12 ` Martin Jansa
2 siblings, 1 reply; 6+ messages in thread
From: Li Xin @ 2016-01-04 10:12 UTC (permalink / raw)
To: openembedded-devel
python-cryptography depends on python-enum34 python-six python-pyasn1,
And will download modules enum34 six pyasn1 in the step of do_compile.
If your network is not very well,errors will occur as following:
Download error on https://pypi.python.org/simple/enum34/:
[Errno -5] No address associated with hostname -- Some packages may not be found!
Couldn't find index page for 'enum34' (maybe misspelled?)
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
---
.../recipes-devtools/python/python-cryptography_0.8.1.bb | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/meta-python/recipes-devtools/python/python-cryptography_0.8.1.bb b/meta-python/recipes-devtools/python/python-cryptography_0.8.1.bb
index 41e4acd..d6ebbb7 100644
--- a/meta-python/recipes-devtools/python/python-cryptography_0.8.1.bb
+++ b/meta-python/recipes-devtools/python/python-cryptography_0.8.1.bb
@@ -38,6 +38,20 @@ RDEPENDS_${PN}-ptest = "\
inherit ptest
+do_compile_prepend() {
+ install -d ${S}/.eggs
+ if [ -f ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/enum34*.egg ]; then
+ cp ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/enum34*.egg ${S}/.eggs/
+ fi
+
+ if [ -f ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/pyasn1*.egg ]; then
+ cp ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/pyasn1*.egg ${S}/.eggs/
+ fi
+
+ if [ -f ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/six*.egg ]; then
+ cp ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/six*.egg ${S}/.eggs/
+ fi
+}
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
--
1.8.4.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [meta-python][jethro][PATCH 4/4] python-cryptography: Error fix
2016-01-04 10:12 ` [meta-python][jethro][PATCH 4/4] python-cryptography: Error fix Li Xin
@ 2016-01-04 14:12 ` Martin Jansa
0 siblings, 0 replies; 6+ messages in thread
From: Martin Jansa @ 2016-01-04 14:12 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 2214 bytes --]
On Mon, Jan 04, 2016 at 01:12:38PM +0300, Li Xin wrote:
> python-cryptography depends on python-enum34 python-six python-pyasn1,
> And will download modules enum34 six pyasn1 in the step of do_compile.
> If your network is not very well,errors will occur as following:
> Download error on https://pypi.python.org/simple/enum34/:
> [Errno -5] No address associated with hostname -- Some packages may not be found!
> Couldn't find index page for 'enum34' (maybe misspelled?)
Is this change needed in master as well? Where we have 1.1 version.
1/4 and 3/4 do apply in master
>
> Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
> ---
> .../recipes-devtools/python/python-cryptography_0.8.1.bb | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/meta-python/recipes-devtools/python/python-cryptography_0.8.1.bb b/meta-python/recipes-devtools/python/python-cryptography_0.8.1.bb
> index 41e4acd..d6ebbb7 100644
> --- a/meta-python/recipes-devtools/python/python-cryptography_0.8.1.bb
> +++ b/meta-python/recipes-devtools/python/python-cryptography_0.8.1.bb
> @@ -38,6 +38,20 @@ RDEPENDS_${PN}-ptest = "\
>
> inherit ptest
>
> +do_compile_prepend() {
> + install -d ${S}/.eggs
> + if [ -f ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/enum34*.egg ]; then
> + cp ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/enum34*.egg ${S}/.eggs/
> + fi
> +
> + if [ -f ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/pyasn1*.egg ]; then
> + cp ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/pyasn1*.egg ${S}/.eggs/
> + fi
> +
> + if [ -f ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/six*.egg ]; then
> + cp ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/six*.egg ${S}/.eggs/
> + fi
> +}
> do_install_ptest() {
> install -d ${D}${PTEST_PATH}/tests
> cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
> --
> 1.8.4.2
>
>
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-01-04 14:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-04 10:12 [meta-python][jethro][PATCH 1/4] python-enum34: Error Fix for recipes depend on python-enum34 Li Xin
2016-01-04 10:12 ` [meta-python][jethro][PATCH 2/4] python-pyasn1: Error fix for recipes depend on python-pyasn1 Li Xin
2016-01-04 14:11 ` Martin Jansa
2016-01-04 10:12 ` [meta-python][jethro][PATCH 3/4] python-six: Error fix for recipes depend on python-six Li Xin
2016-01-04 10:12 ` [meta-python][jethro][PATCH 4/4] python-cryptography: Error fix Li Xin
2016-01-04 14:12 ` Martin Jansa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.