Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623248 - dev-python/pytest-3.1.2 should depend on dev-python/setuptools_scm
Summary: dev-python/pytest-3.1.2 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: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-01 10:25 UTC by Michał Bartoszkiewicz
Modified: 2017-07-30 17:43 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Bartoszkiewicz 2017-07-01 10:25:08 UTC
Emerging dev-python/pytest-3.1.2 without dev-python/setuptools_scm installed fails with:
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python2.7 setup.py build
Download error on https://pypi.python.org/simple/setuptools-scm/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't find index page for 'setuptools-scm' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [Errno -2] Name or service not known -- 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 99, in <module>
    main()
  File "setup.py", line 79, in main
    zip_safe=False,
  File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 320, in __init__
    self.fetch_build_eggs(attrs['setup_requires'])
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 377, in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 852, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1124, in best_match
    return self.obtain(req, installer)
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1136, in obtain
    return installer(requirement)
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 445, in fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 667, in easy_install
    raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools-scm')
 * ERROR: dev-python/pytest-3.1.2::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 2723:  Called distutils-r1_src_compile
 *   environment, line  836:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  351:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2246:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1548:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1546:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  566:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line  827:  Called distutils-r1_python_compile
 *   environment, line  702:  Called esetup.py 'build'
 *   environment, line 1093:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";

After manually installing dev-python/setuptools_scm dev-python/pytest-3.1.2 emerges succesfully.

# emerge --info
Portage 2.3.6 (python 2.7.13-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-6.3.0, glibc-2.24-r3, 4.12.0-rc7 x86_64)
=================================================================
System uname: Linux-4.12.0-rc7-x86_64-Intel-R-_Core-TM-_i7-2720QM_CPU_@_2.20GHz-with-gentoo-2.4.1
KiB Mem:    16368096 total,    803908 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Fri, 30 Jun 2017 10:00:57 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1::gentoo
sys-apps/openrc:          0.27.2::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r3::gentoo
Repositories:

gentoo
    location: /var/cache/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://fraktal/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: -c --filter=clear
    sync-rsync-vcs-ignore: true

embe
    location: /var/cache/repos/embe
    sync-type: laymansync
    sync-uri: git://git.bzium.org/~embe/overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x Google-TOS google-chrome GIMPS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --complete-graph y --quiet-build y"
FCFLAGS="-march=native -O2 -pipe -ggdb"
FEATURES="assume-digests binpkg-logs buildpkg cgroup clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -ggdb"
GENTOO_MIRRORS="http://ftp.vectranet.pl/gentoo/ http://gentoo.prz.rzeszow.pl http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INSTALL_MASK="/etc/rmt /var/run /etc/xinetd.d /var/lock /var/mail /var/spool/mail /etc/skel /usr/share/man/cat*"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,-z,now"
MAKEOPTS="-j8"
PKGDIR="/var/cache/packages"
PORTAGE_BUNZIP2_COMMAND="lbunzip2"
PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="--best"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="R X a52 aac aacplus acl acpi adns alsa amd64 android archive ass avahi avx bazaar bluetooth bzip2 cairo caps cdb cdda cddb cdr cli clutter colord conntrack crypt cryptsetup cups curl cvs cxx dbus dconf device-mapper dirac djvu dri dts dvb dvd dvdr dvi eds egl elfutils emboss encode evdev evo exif fam fat ffmpeg fftw firefox flac fontconfig fortran fuse gadu gd gdbm gegl geoclue gif gimp git glamor gmp gnome gnome-keyring gnome-online-accounts gnuplot gpg gphoto2 graphicsmagick graphviz gsl gstreamer gtk gtk3 gtkstyle guile http2 iconv icu idn introspection iproute2 ipv6 java jit jpeg jpeg2k lame lapack latex lcms libass libkms libnotify libproxy libsamplerate libsecret live llvm lua lzma lzo mad maildir man matroska mercurial metalink metric mms mmxext mng modemmanager modules mp3 mp4 mpeg mtp multilib musepack nautilus ncurses netlink networkmanager nls nptl obex offensive ogg openal openexr opengl openmp opus osmesa pam pango pcap pch pcre pdf pgf pkcs11 playlist plotutils png policykit postproc postscript ppds pulseaudio python qt3support raw rdp readline rtmp rubberband samba schroedinger sdl seccomp session sftp sip smartcard smi smp snappy speex spell spice sqlite sse3 sse4 sse41 sse4_1 ssl ssse3 startup-notification subversion svg syslog systemd telepathy theora tiff tls tracker truetype udev udisks unicode upnp upnp-av upower urandom usb uuid v4l vaapi vala vdpau vim-syntax vlc vorbis vpx vte webp wifi wxwidgets x264 xattr xcb xinerama xml xmp xmpp xv xvid zeroconf zlib zsh-completion" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport nlpsolver" LINGUAS="en en_US pl pl_PL" LLVM_TARGETS="AMDGPU BPF X86" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" QEMU_SOFTMMU_TARGETS="x86_64 i386 arm" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Patrice Clement gentoo-dev 2017-07-19 14:30:06 UTC
Hi. I cannot reproduce this bug, sorry. Even after unmerging setuputils_scm, pytest emerges just fine.
Comment 2 Michał Bartoszkiewicz 2017-07-19 18:18:11 UTC
I did some more testing.
pytest emerges successfully without setuputils_scm with FEATURES=-network-sandbox (and working network connection), by downloading setuputils_scm from PyPI (not a good idea).
Please try with FEATURES=network-sandbox or without a working network connection.
Comment 3 David Seifert gentoo-dev 2017-07-30 17:43:34 UTC
commit 952d910bcd553342759e4d055d3f16617b872f4d
Author: David Seifert <soap@gentoo.org>
Date:   Sun Jul 30 19:39:30 2017 +0200

    dev-python/pytest: Add missing DEPEND on dev-python/setuptools_scm
    
    * Thanks to Michał Bartoszkiewicz for catching this
    
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=623248