All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Upgrade piglit
@ 2016-07-07 15:39 Jussi Kukkonen
  2016-07-07 15:39 ` [PATCH 1/5] python-six: Add to oe-core Jussi Kukkonen
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Jussi Kukkonen @ 2016-07-07 15:39 UTC (permalink / raw)
  To: openembedded-core

This set upgrades piglit, adds python-six (new piglit dependency),
moves piglit to python3 and fixes all the python module issues that
popped up.

A word of warning to anyone else using piglit: it was big before and
has now tripled in size (30000 new tests!). The installed size is over
1.5GB and packaging takes a very long time.

For reference, the results with PIGLIT_NO_WINDOW=1 look like this on
a NUC (Haswell with HD5000 graphics) running current master:

       name:  quick
       ----  ------
       pass:  33717
       fail:    438
      crash:      5
       skip:  30887
       warn:      7
      total:  65054

Jussi


The following changes since commit 5c11e365e19357f721c49d076971567e7b64b61b:

  lib/oeqa: add Galculator to SDK and runtime tests (2016-07-01 16:22:48 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib jku/piglit
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=jku/piglit

Jussi Kukkonen (5):
  python-six: Add to oe-core
  python3: Add compression to python3-shell dependencies
  python3: Add dependencies for python3-misc
  python3-native: Add "io" to rprovides
  piglit: Upgrade version, use python3

 .../python/python-3.5-manifest.inc                 |  2 +-
 meta/recipes-devtools/python/python-six.inc        | 23 ++++++++++++++++++
 meta/recipes-devtools/python/python-six_1.10.0.bb  |  4 ++++
 .../python/python3-native_3.5.1.bb                 |  2 +-
 meta/recipes-devtools/python/python3-six_1.10.0.bb |  4 ++++
 meta/recipes-devtools/python/python3_3.5.1.bb      |  2 +-
 ...0001-tests-Fix-missing-include-of-Xutil.h.patch | 28 ----------------------
 meta/recipes-graphics/piglit/piglit_git.bb         | 18 +++++++-------
 scripts/contrib/python/generate-manifest-3.5.py    |  2 +-
 9 files changed, 44 insertions(+), 41 deletions(-)
 create mode 100644 meta/recipes-devtools/python/python-six.inc
 create mode 100644 meta/recipes-devtools/python/python-six_1.10.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-six_1.10.0.bb
 delete mode 100644 meta/recipes-graphics/piglit/piglit/0001-tests-Fix-missing-include-of-Xutil.h.patch

-- 
2.1.4



^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH 1/5] python-six: Add to oe-core
  2016-07-07 15:39 [PATCH 0/5] Upgrade piglit Jussi Kukkonen
@ 2016-07-07 15:39 ` Jussi Kukkonen
  2016-07-08 20:17   ` Burton, Ross
  2016-07-07 15:39 ` [PATCH 2/5] python3: Add compression to python3-shell dependencies Jussi Kukkonen
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 13+ messages in thread
From: Jussi Kukkonen @ 2016-07-07 15:39 UTC (permalink / raw)
  To: openembedded-core

Recipes are moved from meta-openembedded/meta-python

Changes compared to meta-python version:
* Modified to not inherit pypi
* Fix python-io dependency for python3
* Support native, nativesdk

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
---
 meta/recipes-devtools/python/python-six.inc        | 23 ++++++++++++++++++++++
 meta/recipes-devtools/python/python-six_1.10.0.bb  |  4 ++++
 meta/recipes-devtools/python/python3-six_1.10.0.bb |  4 ++++
 3 files changed, 31 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python-six.inc
 create mode 100644 meta/recipes-devtools/python/python-six_1.10.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-six_1.10.0.bb

diff --git a/meta/recipes-devtools/python/python-six.inc b/meta/recipes-devtools/python/python-six.inc
new file mode 100644
index 0000000..6e1bd53
--- /dev/null
+++ b/meta/recipes-devtools/python/python-six.inc
@@ -0,0 +1,23 @@
+SUMMARY = "Python 2 and 3 compatibility library"
+HOMEPAGE = "https://pypi.python.org/pypi/six/"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=6f00d4a50713fa859858dd9abaa35b21"
+
+SRC_URI = "https://files.pythonhosted.org/packages/source/s/six/six-${PV}.tar.gz"
+SRC_URI[md5sum] = "34eed507548117b2ab523ab14b2f8b55"
+SRC_URI[sha256sum] = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a"
+
+UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/six/"
+UPSTREAM_CHECK_REGEX = "/six/(?P<pver>(\d+[\.\-_]*)+)"
+
+BBCLASSEXTEND = "native nativesdk"
+
+S = "${WORKDIR}/six-${PV}"
+
+do_compile_append() {
+    ${PYTHON} setup.py -q bdist_egg --dist-dir ./
+}
+do_install_append() {
+    install -m 0644 ${S}/*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/
+}
diff --git a/meta/recipes-devtools/python/python-six_1.10.0.bb b/meta/recipes-devtools/python/python-six_1.10.0.bb
new file mode 100644
index 0000000..4350485
--- /dev/null
+++ b/meta/recipes-devtools/python/python-six_1.10.0.bb
@@ -0,0 +1,4 @@
+inherit setuptools
+require python-six.inc
+
+RDEPENDS_${PN} += "python-io"
diff --git a/meta/recipes-devtools/python/python3-six_1.10.0.bb b/meta/recipes-devtools/python/python3-six_1.10.0.bb
new file mode 100644
index 0000000..38a47b7
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-six_1.10.0.bb
@@ -0,0 +1,4 @@
+inherit setuptools3
+require python-six.inc
+
+RDEPENDS_${PN} += "python3-io"
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 2/5] python3: Add compression to python3-shell dependencies
  2016-07-07 15:39 [PATCH 0/5] Upgrade piglit Jussi Kukkonen
  2016-07-07 15:39 ` [PATCH 1/5] python-six: Add to oe-core Jussi Kukkonen
@ 2016-07-07 15:39 ` Jussi Kukkonen
  2016-07-07 15:39 ` [PATCH 3/5] python3: Add dependencies for python3-misc Jussi Kukkonen
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 13+ messages in thread
From: Jussi Kukkonen @ 2016-07-07 15:39 UTC (permalink / raw)
  To: openembedded-core

python3-shell needs python3-compression for tarfile.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
---
 meta/recipes-devtools/python/python-3.5-manifest.inc | 2 +-
 scripts/contrib/python/generate-manifest-3.5.py      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/python/python-3.5-manifest.inc b/meta/recipes-devtools/python/python-3.5-manifest.inc
index 335c3ff..eb9857c 100644
--- a/meta/recipes-devtools/python/python-3.5-manifest.inc
+++ b/meta/recipes-devtools/python/python-3.5-manifest.inc
@@ -194,7 +194,7 @@ RDEPENDS_${PN}-resource="${PN}-core"
 FILES_${PN}-resource="${libdir}/python3.5/lib-dynload/resource.*.so "
 
 SUMMARY_${PN}-shell="Python shell-like functionality"
-RDEPENDS_${PN}-shell="${PN}-core ${PN}-re"
+RDEPENDS_${PN}-shell="${PN}-core ${PN}-re ${PN}-compression"
 FILES_${PN}-shell="${libdir}/python3.5/cmd.* ${libdir}/python3.5/commands.* ${libdir}/python3.5/dircache.* ${libdir}/python3.5/fnmatch.* ${libdir}/python3.5/glob.* ${libdir}/python3.5/popen2.* ${libdir}/python3.5/shlex.* ${libdir}/python3.5/shutil.* "
 
 SUMMARY_${PN}-smtpd="Python Simple Mail Transport Daemon"
diff --git a/scripts/contrib/python/generate-manifest-3.5.py b/scripts/contrib/python/generate-manifest-3.5.py
index e04da1d..44fffa4 100755
--- a/scripts/contrib/python/generate-manifest-3.5.py
+++ b/scripts/contrib/python/generate-manifest-3.5.py
@@ -336,7 +336,7 @@ if __name__ == "__main__":
     m.addPackage( "${PN}-resource", "Python resource control interface", "${PN}-core",
     "lib-dynload/resource.*.so" )
 
-    m.addPackage( "${PN}-shell", "Python shell-like functionality", "${PN}-core ${PN}-re",
+    m.addPackage( "${PN}-shell", "Python shell-like functionality", "${PN}-core ${PN}-re ${PN}-compression",
     "cmd.* commands.* dircache.* fnmatch.* glob.* popen2.* shlex.* shutil.*" )
 
     m.addPackage( "${PN}-subprocess", "Python subprocess support", "${PN}-core ${PN}-io ${PN}-re ${PN}-fcntl ${PN}-pickle",
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 3/5] python3: Add dependencies for python3-misc
  2016-07-07 15:39 [PATCH 0/5] Upgrade piglit Jussi Kukkonen
  2016-07-07 15:39 ` [PATCH 1/5] python-six: Add to oe-core Jussi Kukkonen
  2016-07-07 15:39 ` [PATCH 2/5] python3: Add compression to python3-shell dependencies Jussi Kukkonen
@ 2016-07-07 15:39 ` Jussi Kukkonen
  2016-07-07 15:39 ` [PATCH 4/5] python3-native: Add "io" to rprovides Jussi Kukkonen
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 13+ messages in thread
From: Jussi Kukkonen @ 2016-07-07 15:39 UTC (permalink / raw)
  To: openembedded-core

http.server requires email.parser. argparse requires
codecs and textutils.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
---
 meta/recipes-devtools/python/python3_3.5.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3_3.5.1.bb b/meta/recipes-devtools/python/python3_3.5.1.bb
index 78ae174..0d667d2 100644
--- a/meta/recipes-devtools/python/python3_3.5.1.bb
+++ b/meta/recipes-devtools/python/python3_3.5.1.bb
@@ -213,7 +213,7 @@ INSANE_SKIP_${PN}-dev += "dev-elf"
 
 # catch all the rest (unsorted)
 PACKAGES += "${PN}-misc"
-RDEPENDS_${PN}-misc += "${PN}-core"
+RDEPENDS_${PN}-misc += "${PN}-core ${PN}-email ${PN}-codecs ${PN}-textutils"
 RDEPENDS_${PN}-modules += "${PN}-misc"
 FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN}"
 
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 4/5] python3-native: Add "io" to rprovides
  2016-07-07 15:39 [PATCH 0/5] Upgrade piglit Jussi Kukkonen
                   ` (2 preceding siblings ...)
  2016-07-07 15:39 ` [PATCH 3/5] python3: Add dependencies for python3-misc Jussi Kukkonen
@ 2016-07-07 15:39 ` Jussi Kukkonen
  2016-07-07 15:39 ` [PATCH 5/5] piglit: Upgrade version, use python3 Jussi Kukkonen
  2016-07-08 16:04 ` [PATCH 0/5] Upgrade piglit Burton, Ross
  5 siblings, 0 replies; 13+ messages in thread
From: Jussi Kukkonen @ 2016-07-07 15:39 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
---
 meta/recipes-devtools/python/python3-native_3.5.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-native_3.5.1.bb b/meta/recipes-devtools/python/python3-native_3.5.1.bb
index fbe04c6..81ea087 100644
--- a/meta/recipes-devtools/python/python3-native_3.5.1.bb
+++ b/meta/recipes-devtools/python/python3-native_3.5.1.bb
@@ -41,7 +41,7 @@ DEPENDS = "openssl-native bzip2-replacement-native zlib-native readline-native s
 
 inherit native
 
-RPROVIDES += "python3-distutils-native python3-compression-native python3-textutils-native python3-core-native python3-importlib-native"
+RPROVIDES += "python3-distutils-native python3-compression-native python3-textutils-native python3-core-native python3-importlib-native python3-io-native"
 
 EXTRA_OECONF_append = " --bindir=${bindir}/${PN} --without-ensurepip"
 
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 5/5] piglit: Upgrade version, use python3
  2016-07-07 15:39 [PATCH 0/5] Upgrade piglit Jussi Kukkonen
                   ` (3 preceding siblings ...)
  2016-07-07 15:39 ` [PATCH 4/5] python3-native: Add "io" to rprovides Jussi Kukkonen
@ 2016-07-07 15:39 ` Jussi Kukkonen
  2016-07-08 16:04 ` [PATCH 0/5] Upgrade piglit Burton, Ross
  5 siblings, 0 replies; 13+ messages in thread
From: Jussi Kukkonen @ 2016-07-07 15:39 UTC (permalink / raw)
  To: openembedded-core

* Remove backported patch
* Update dependencies to use python3 modules, add depencies added
  in the new version

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
---
 ...0001-tests-Fix-missing-include-of-Xutil.h.patch | 28 ----------------------
 meta/recipes-graphics/piglit/piglit_git.bb         | 18 +++++++-------
 2 files changed, 9 insertions(+), 37 deletions(-)
 delete mode 100644 meta/recipes-graphics/piglit/piglit/0001-tests-Fix-missing-include-of-Xutil.h.patch

diff --git a/meta/recipes-graphics/piglit/piglit/0001-tests-Fix-missing-include-of-Xutil.h.patch b/meta/recipes-graphics/piglit/piglit/0001-tests-Fix-missing-include-of-Xutil.h.patch
deleted file mode 100644
index c27cc04..0000000
--- a/meta/recipes-graphics/piglit/piglit/0001-tests-Fix-missing-include-of-Xutil.h.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-Upstream-Status: Backport
-Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-
-From e40e0a25f996d2e205c4bdec2c8a5cc7f74e5065 Mon Sep 17 00:00:00 2001
-From: Otavio Salvador <otavio@ossystems.com.br>
-Date: Mon, 15 Jun 2015 16:25:30 -0300
-Subject: tests: Fix missing include of Xutil.h
-
-The EGL tests rely on Xutil.h being included. Some EGL implementation
-does not explitly include it by default and then the build fails.
-
-Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-Reviewed-by: Neil Roberts <neil@linux.intel.com>
-
-diff --git a/tests/egl/egl-configless-context.c b/tests/egl/egl-configless-context.c
-index 0504a26..154b55c 100644
---- a/tests/egl/egl-configless-context.c
-+++ b/tests/egl/egl-configless-context.c
-@@ -32,6 +32,7 @@
- /* Chunks of code in this file are taken from egl-util.c */
- 
- #include <X11/Xlib.h>
-+#include <X11/Xutil.h>
- 
- #include "piglit-util-gl.h"
- #include "piglit-util-egl.h"
--- 
-cgit v0.10.2
diff --git a/meta/recipes-graphics/piglit/piglit_git.bb b/meta/recipes-graphics/piglit/piglit_git.bb
index 607f236..206be42 100644
--- a/meta/recipes-graphics/piglit/piglit_git.bb
+++ b/meta/recipes-graphics/piglit/piglit_git.bb
@@ -3,18 +3,18 @@ LICENSE = "MIT & LGPLv2+ & GPLv3 & GPLv2+ & BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b2beded7103a3d8a442a2a0391d607b0"
 
 SRC_URI = "git://anongit.freedesktop.org/piglit \
-           file://0001-tests-Fix-missing-include-of-Xutil.h.patch"
+           "
 
-# From 2015-02-19
-SRCREV = "c4585427913e4cb28994b4bfb11d49778273aa2c"
+# From 2016-07-07
+SRCREV = "c39e41a86551eb390b8da23232dc8577639403d0"
 # (when PV goes above 1.0 remove the trailing r)
 PV = "1.0+gitr${SRCPV}"
 
 S = "${WORKDIR}/git"
 
-DEPENDS = "virtual/libx11 libxrender waffle virtual/libgl libglu python-mako-native python-numpy-native"
+DEPENDS = "libpng virtual/libx11 libxrender waffle virtual/libgl libglu python3-mako-native python3-numpy-native python3-six-native"
 
-inherit cmake pythonnative distro_features_check
+inherit cmake python3native distro_features_check
 # depends on virtual/libx11
 REQUIRED_DISTRO_FEATURES = "x11"
 
@@ -34,10 +34,10 @@ do_configure_prepend() {
    fi
 }
 
-RDEPENDS_${PN} = "waffle python python-mako python-json python-subprocess \
-	python-argparse python-importlib python-unixadmin python-xml \
-	python-multiprocessing python-textutils python-netserver python-shell \
-	mesa-demos bash \
+RDEPENDS_${PN} = "waffle python3 python3-mako python3-json \
+	python3-subprocess python3-misc python3-importlib \
+	python3-unixadmin python3-xml python3-multiprocessing \
+	python3-six python3-shell python3-io mesa-demos bash \
 	"
 
 INSANE_SKIP_${PN} += "dev-so"
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH 0/5] Upgrade piglit
  2016-07-07 15:39 [PATCH 0/5] Upgrade piglit Jussi Kukkonen
                   ` (4 preceding siblings ...)
  2016-07-07 15:39 ` [PATCH 5/5] piglit: Upgrade version, use python3 Jussi Kukkonen
@ 2016-07-08 16:04 ` Burton, Ross
  5 siblings, 0 replies; 13+ messages in thread
From: Burton, Ross @ 2016-07-08 16:04 UTC (permalink / raw)
  To: Jussi Kukkonen; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 558 bytes --]

On 7 July 2016 at 16:39, Jussi Kukkonen <jussi.kukkonen@intel.com> wrote:

> A word of warning to anyone else using piglit: it was big before and
> has now tripled in size (30000 new tests!). The installed size is over
> 1.5GB and packaging takes a very long time.
>

I did a quick hack to the current piglit in master
(poky-contrib:ross/piglit) to strip the binaries.  We don't get debug
symbols (which are 4gb before the upgrade) and build time on my Xeon drops
from 10 minutes to 5 minutes.

I think this is an acceptable compromise!

Ross

[-- Attachment #2: Type: text/html, Size: 1061 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/5] python-six: Add to oe-core
  2016-07-07 15:39 ` [PATCH 1/5] python-six: Add to oe-core Jussi Kukkonen
@ 2016-07-08 20:17   ` Burton, Ross
  2016-07-08 20:30     ` Alejandro Hernandez
  2016-07-11 11:46     ` Jussi Kukkonen
  0 siblings, 2 replies; 13+ messages in thread
From: Burton, Ross @ 2016-07-08 20:17 UTC (permalink / raw)
  To: Jussi Kukkonen; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 448 bytes --]

On 7 July 2016 at 16:39, Jussi Kukkonen <jussi.kukkonen@intel.com> wrote:

> +do_compile_append() {
> +    ${PYTHON} setup.py -q bdist_egg --dist-dir ./
> +}
> +do_install_append() {
> +    install -m 0644 ${S}/*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/
> +}
>

Is this actually required?  The setuptools class should be doing all the
magic, and this appears to be building and installing an egg, which we
generally try not to do.

Ross

[-- Attachment #2: Type: text/html, Size: 868 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/5] python-six: Add to oe-core
  2016-07-08 20:17   ` Burton, Ross
@ 2016-07-08 20:30     ` Alejandro Hernandez
  2016-07-11 11:46     ` Jussi Kukkonen
  1 sibling, 0 replies; 13+ messages in thread
From: Alejandro Hernandez @ 2016-07-08 20:30 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 687 bytes --]

On 07/08/2016 03:17 PM, Burton, Ross wrote:
>
> On 7 July 2016 at 16:39, Jussi Kukkonen <jussi.kukkonen@intel.com 
> <mailto:jussi.kukkonen@intel.com>> wrote:
>
>     +do_compile_append() {
>     +    ${PYTHON} setup.py -q bdist_egg --dist-dir ./
>     +}
>     +do_install_append() {
>     +    install -m 0644 ${S}/*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/
>     +}
>
>
> Is this actually required?  The setuptools class should be doing all 
> the magic, and this appears to be building and installing an egg, 
> which we generally try not to do.
>
> Ross

As far as I remember, if the package uses the setuptools class this 
should be handled automatically.
>
>


[-- Attachment #2: Type: text/html, Size: 1945 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/5] python-six: Add to oe-core
  2016-07-08 20:17   ` Burton, Ross
  2016-07-08 20:30     ` Alejandro Hernandez
@ 2016-07-11 11:46     ` Jussi Kukkonen
  2016-07-11 14:27       ` Alexander Kanavin
  1 sibling, 1 reply; 13+ messages in thread
From: Jussi Kukkonen @ 2016-07-11 11:46 UTC (permalink / raw)
  To: Burton, Ross, Li xin; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 1437 bytes --]

On 8 July 2016 at 23:17, Burton, Ross <ross.burton@intel.com> wrote:

>
> On 7 July 2016 at 16:39, Jussi Kukkonen <jussi.kukkonen@intel.com> wrote:
>
>> +do_compile_append() {
>> +    ${PYTHON} setup.py -q bdist_egg --dist-dir ./
>> +}
>> +do_install_append() {
>> +    install -m 0644 ${S}/*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/
>> +}
>>
>
> Is this actually required?  The setuptools class should be doing all the
> magic, and this appears to be building and installing an egg, which we
> generally try not to do.
>

If eggs are not wanted (and that seems to make sense) then these functions
should be removed  ... but I don't understand the commit that introduced
this (6b4cee975 in meta-oe):

    python-six: Error fix for recipes depend on python-six

    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.

Not sure where a URL like that comes from or why it would be accessed
during build? Li Xin, any comment?

I'll send a revised patch without the appends.
  - Jussi

[-- Attachment #2: Type: text/html, Size: 2463 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/5] python-six: Add to oe-core
  2016-07-11 11:46     ` Jussi Kukkonen
@ 2016-07-11 14:27       ` Alexander Kanavin
  2016-07-12 10:38         ` Jussi Kukkonen
  0 siblings, 1 reply; 13+ messages in thread
From: Alexander Kanavin @ 2016-07-11 14:27 UTC (permalink / raw)
  To: openembedded-core

On 07/11/2016 02:46 PM, Jussi Kukkonen wrote:

> Not sure where a URL like that comes from or why it would be accessed
> during build? Li Xin, any comment?

A few recipes in meta-oe have this issue, for example python-mccabe:

DEBUG: Executing shell function do_compile
Download error on https://pypi.python.org/simple/pytest-runner/: [Errno 
110] Connection timed out -- Some packages may not be found!
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [Errno 110] 
Connection timed out -- Some packages may not be found!
No local packages or download links found for pytest-runner
Traceback (most recent call last):
   File "setup.py", line 57, in <module>
     'Topic :: Software Development :: Quality Assurance',
   File 
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/core.py", 
line 111, in setup
     _setup_distribution = dist = klass(attrs)
   File 
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/dist.py", 
line 269, in __init__
   File 
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/dist.py", 
line 313, in fetch_build_eggs
   File 
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py", 
line 826, in resolve
   File 
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py", 
line 1092, in best_match
   File 
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py", 
line 1104, in obtain
   File 
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/dist.py", 
line 380, in fetch_build_egg
   File 
"/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/command/easy_install.py", 
line 659, in easy_install
distutils.errors.DistutilsError: Could not find suitable distribution 
for Requirement.parse('pytest-runner')
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at 
/home/ak/development/poky/build-meta-openembedded/tmp/work/i586-poky-linux/python-mccabe/0.4.0-r0/temp/log.do_compile.3493)


Alex


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/5] python-six: Add to oe-core
  2016-07-11 14:27       ` Alexander Kanavin
@ 2016-07-12 10:38         ` Jussi Kukkonen
  2016-07-12 10:45           ` Alexander Kanavin
  0 siblings, 1 reply; 13+ messages in thread
From: Jussi Kukkonen @ 2016-07-12 10:38 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 3683 bytes --]

On 11 July 2016 at 17:27, Alexander Kanavin <
alexander.kanavin@linux.intel.com> wrote:

> On 07/11/2016 02:46 PM, Jussi Kukkonen wrote:
>
> Not sure where a URL like that comes from or why it would be accessed
>> during build? Li Xin, any comment?
>>
>
> A few recipes in meta-oe have this issue, for example python-mccabe:
>
> DEBUG: Executing shell function do_compile
> Download error on https://pypi.python.org/simple/pytest-runner/: [Errno
> 110] Connection timed out -- Some packages may not be found!
> Couldn't find index page for 'pytest-runner' (maybe misspelled?)
> Download error on https://pypi.python.org/simple/: [Errno 110] Connection
> timed out -- Some packages may not be found!
> No local packages or download links found for pytest-runner
> Traceback (most recent call last):
>   File "setup.py", line 57, in <module>
>     'Topic :: Software Development :: Quality Assurance',
>   File
> "/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/core.py",
> line 111, in setup
>     _setup_distribution = dist = klass(attrs)
>   File
> "/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/dist.py",
> line 269, in __init__
>   File
> "/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/dist.py",
> line 313, in fetch_build_eggs
>

So mccabe recipe doesn't depend on pytest-runner but does have it in
"setup_requires": as a result setuptools tries to download and unpack the
pytest-runner egg. I think that might be solved by depending on
pytest-runner, although  "setup_requires" handling does have some issues so
I'm not sure about that: https://github.com/pypa/pip/issues/410 .

Interestingly  python-cryptography does not have six in "setup_requires" so
I still don't understand why it would do this. I'll do a few tests on that
before sending the updated patch set.

Jussi


  File
> "/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py",
> line 826, in resolve
>   File
> "/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py",
> line 1092, in best_match
>   File
> "/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py",
> line 1104, in obtain
>   File
> "/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/dist.py",
> line 380, in fetch_build_egg
>   File
> "/home/ak/development/poky/build-meta-openembedded/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/setuptools/command/easy_install.py",
> line 659, in easy_install
> distutils.errors.DistutilsError: Could not find suitable distribution for
> Requirement.parse('pytest-runner')
> WARNING: exit code 1 from a shell command.
> ERROR: Function failed: do_compile (log file is located at
> /home/ak/development/poky/build-meta-openembedded/tmp/work/i586-poky-linux/python-mccabe/0.4.0-r0/temp/log.do_compile.3493)
>
>
> Alex
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

[-- Attachment #2: Type: text/html, Size: 5170 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/5] python-six: Add to oe-core
  2016-07-12 10:38         ` Jussi Kukkonen
@ 2016-07-12 10:45           ` Alexander Kanavin
  0 siblings, 0 replies; 13+ messages in thread
From: Alexander Kanavin @ 2016-07-12 10:45 UTC (permalink / raw)
  To: Jussi Kukkonen; +Cc: Patches and discussions about the oe-core layer

On 07/12/2016 01:38 PM, Jussi Kukkonen wrote:
> Interestingly  python-cryptography does not have six in "setup_requires"
> so I still don't understand why it would do this. I'll do a few tests on
> that before sending the updated patch set.

Maybe it simply used to have that in the past, and no longer does.


Alex



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-07-12 10:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-07 15:39 [PATCH 0/5] Upgrade piglit Jussi Kukkonen
2016-07-07 15:39 ` [PATCH 1/5] python-six: Add to oe-core Jussi Kukkonen
2016-07-08 20:17   ` Burton, Ross
2016-07-08 20:30     ` Alejandro Hernandez
2016-07-11 11:46     ` Jussi Kukkonen
2016-07-11 14:27       ` Alexander Kanavin
2016-07-12 10:38         ` Jussi Kukkonen
2016-07-12 10:45           ` Alexander Kanavin
2016-07-07 15:39 ` [PATCH 2/5] python3: Add compression to python3-shell dependencies Jussi Kukkonen
2016-07-07 15:39 ` [PATCH 3/5] python3: Add dependencies for python3-misc Jussi Kukkonen
2016-07-07 15:39 ` [PATCH 4/5] python3-native: Add "io" to rprovides Jussi Kukkonen
2016-07-07 15:39 ` [PATCH 5/5] piglit: Upgrade version, use python3 Jussi Kukkonen
2016-07-08 16:04 ` [PATCH 0/5] Upgrade piglit Burton, Ross

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.