Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685274 - dev-python/ebuildtester should depend on dev-python/setuptools_scm
Summary: dev-python/ebuildtester should depend on dev-python/setuptools_scm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Nicolas Bock
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-05-07 13:58 UTC by Brian
Modified: 2020-03-27 12:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (dev-python:ebuildtester-0.1.14:20190507-134243.log,4.93 KB, text/x-log)
2019-05-07 13:58 UTC, Brian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian 2019-05-07 13:58:25 UTC
Created attachment 575470 [details]
build log

When trying to emerge dev-python/ebuildtester without setuptools_scm installed, I'm getting the following error:
```
>>> Compiling source in /tmp/portage/dev-python/ebuildtester-0.1.14/work/ebuildtester-0.1.14 ...
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
python2.7 setup.py build
Download error on https://pypi.org/simple/setuptools_scm/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
Download error on https://pypi.org/simple/setuptools-scm/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
Couldn't find index page for 'setuptools_scm' (maybe misspelled?)
Download error on https://pypi.org/simple/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
No local packages or working download links found for setuptools_scm
Traceback (most recent call last):
  File "setup.py", line 22, in <module>
    "ebuildtester = ebuildtester.main:main"
  File "/usr/lib64/python2.7/site-packages/setuptools/__init__.py", line 142, in setup
    _install_setup_requires(attrs)
  File "/usr/lib64/python2.7/site-packages/setuptools/__init__.py", line 137, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 586, in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 780, in resolve
    replace_conflicting=replace_conflicting
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1063, in best_match
    return self.obtain(req, installer)
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1075, in obtain
    return installer(requirement)
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 653, in fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 673, in easy_install
    raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools_scm')
```
Installing dev-python/setuptools_scm before emerging ebuildtester fixes the issue.
Comment 1 Zoë Sparks 2019-11-25 23:34:04 UTC
Perhaps this should be in its own bug report, but I just encountered this as well while trying to emerge dev-python/python-dateutil-2.8.1:

> >>> Compiling source in /var/tmp/portage/dev-python/python-dateutil-2.8.1/work/python-dateutil-2.8.1 ...
>  * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
> python2.7 setup.py build
> WARNING: The pip package is not available, falling back to EasyInstall for handling setup_requires/test_requires; this is deprecated and will be removed in a future version.
> Download error on https://pypi.org/simple/setuptools_scm/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
> Download error on https://pypi.org/simple/setuptools-scm/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
> Couldn't find index page for u'setuptools_scm' (maybe misspelled?)
> Download error on https://pypi.org/simple/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
> No local packages or working download links found for setuptools_scm
> Traceback (most recent call last):
>   File "setup.py", line 56, in <module>
>     "test": Unsupported
>   File "/usr/lib64/python2.7/site-packages/setuptools/__init__.py", line 144, in setup
>     _install_setup_requires(attrs)
>   File "/usr/lib64/python2.7/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
>     dist.fetch_build_eggs(dist.setup_requires)
>   File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 721, in fetch_build_eggs
>     replace_conflicting=True,
>   File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 782, in resolve
>     replace_conflicting=replace_conflicting
>   File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1065, in best_match
>     return self.obtain(req, installer)
>   File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1077, in obtain
>     return installer(requirement)
>   File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 777, in fetch_build_egg
>     return fetch_build_egg(self, req)
>   File "/usr/lib64/python2.7/site-packages/setuptools/installer.py", line 61, in fetch_build_egg
>     return _legacy_fetch_build_egg(dist, req)
>   File "/usr/lib64/python2.7/site-packages/setuptools/installer.py", line 44, in _legacy_fetch_build_egg
>     return cmd.easy_install(req)
>   File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 679, in easy_install
>     raise DistutilsError(msg)
> distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools_scm')
Comment 2 Zoë Sparks 2019-11-26 07:40:48 UTC
Oh, and I forgot to mention, installing dev-python/setuptools_scm first fixed it for me as well.
Comment 3 Larry the Git Cow gentoo-dev 2020-03-27 12:13:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff4fac396f10d33c4198bb6bbace1dace4323f80

commit ff4fac396f10d33c4198bb6bbace1dace4323f80
Author:     Viktar Patotski (aka xp-vit) <xp.vit.blr@gmail.com>
AuthorDate: 2020-03-26 13:58:31 +0000
Commit:     Nicolas Bock <nicolasbock@gentoo.org>
CommitDate: 2020-03-27 12:13:25 +0000

    Fix Python dependencies in ebuildtester
    
    Closes: https://bugs.gentoo.org/686850
    Closes: https://bugs.gentoo.org/685274
    Signed-off-by: Viktar Patotski <xp.vit.blr@gmail.com>
    Signed-off-by: Nicolas Bock <nicolasbock@gentoo.org>

 dev-python/ebuildtester/ebuildtester-0.1.16.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)