All of lore.kernel.org
 help / color / mirror / Atom feed
From: Li Xin <lixin.fnst@cn.fujitsu.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: [meta-python][jethro][PATCH 1/4] python-enum34: Error Fix for recipes depend on python-enum34
Date: Mon, 4 Jan 2016 13:12:35 +0300	[thread overview]
Message-ID: <1451902358-1844-1-git-send-email-lixin.fnst@cn.fujitsu.com> (raw)

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





             reply	other threads:[~2016-01-04 10:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-04 10:12 Li Xin [this message]
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

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=1451902358-1844-1-git-send-email-lixin.fnst@cn.fujitsu.com \
    --to=lixin.fnst@cn.fujitsu.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /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 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.