Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639848 - dev-python/paho-mqtt-1.2.3 build fails with missing setuptools when changing PYTHON_TARGETS
Summary: dev-python/paho-mqtt-1.2.3 build fails with missing setuptools when changing ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: setuptools-missing
  Show dependency tree
 
Reported: 2017-12-04 21:31 UTC by Nick Cripps
Modified: 2018-02-07 09:44 UTC (History)
2 users (show)

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


Attachments
emerge --info '=dev-python/paho-mqtt-1.2.3::gentoo' (emerge-info,6.89 KB, text/plain)
2017-12-04 21:32 UTC, Nick Cripps
Details
emerge -pqv '=dev-python/paho-mqtt-1.2.3::gentoo' (emerge-pqv,106 bytes, text/plain)
2017-12-04 21:33 UTC, Nick Cripps
Details
build log (build-log,5.31 KB, application/octet-stream)
2017-12-04 21:33 UTC, Nick Cripps
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Cripps 2017-12-04 21:31:48 UTC
Building dev-python/paho-mqtt-1.2.3 fails with

 * python3_5: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python3.5 setup.py build
Traceback (most recent call last):
  File "setup.py", line 4, in <module>
    from setuptools import setup, find_packages
ImportError: No module named 'setuptools'

when doing emerge -uDN @world after a change of PYTHON_TARGETS to include python3.5 and setting python3.5 as the default python interpreter using eselect python set --python3. 

I guess that dev-python/paho-mqtt depends on dev-python/setuptools being installed with the same python_targets flags, and that is not in the ebuild?
Comment 1 Nick Cripps 2017-12-04 21:32:29 UTC
Created attachment 508188 [details]
emerge --info '=dev-python/paho-mqtt-1.2.3::gentoo'
Comment 2 Nick Cripps 2017-12-04 21:33:05 UTC
Created attachment 508190 [details]
emerge -pqv '=dev-python/paho-mqtt-1.2.3::gentoo'
Comment 3 Nick Cripps 2017-12-04 21:33:25 UTC
Created attachment 508192 [details]
build log
Comment 4 Sophie Hamilton 2017-12-14 23:19:07 UTC
This also occurred with these packages when I did an emerge today (last --sync was on December 10th):

* app-misc/icdiff-1.9.1
* dev-libs/capstone-3.0.5_rc2-r1 

Obviously can be worked around on a world emerge by using --resume --skip-first until setuptools is rebuilt and then going back to redo the missed packages, but ideally setuptools should be considered a build-time dependency for these packages.
Comment 5 Larry the Git Cow gentoo-dev 2018-02-07 09:44:55 UTC
The bug has been closed via the following commit(s):

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

commit 30a112a339597bee0d998ac29f9a255b5cd335d3
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-02-07 09:41:47 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-02-07 09:44:45 +0000

    dev-python/paho-mqtt: Add missing dep on setuptools
    
    Closes: https://bugs.gentoo.org/639848

 dev-python/paho-mqtt/paho-mqtt-1.2.3.ebuild | 3 +++
 1 file changed, 3 insertions(+)