[OE-core] [PATCH 1/5] python-six: Add to oe-core

Jussi Kukkonen jussi.kukkonen at intel.com
Tue Jul 12 10:38:50 UTC 2016


On 11 July 2016 at 17:27, Alexander Kanavin <
alexander.kanavin at 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 at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160712/5c5f7a61/attachment-0002.html>


More information about the Openembedded-core mailing list