Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499934 - mail-client/thunderbird-24.2.0 - The PYTHONDONTWRITEBYTECODE environment variable is not compatible with setuptools. Either use --distribute or unset PYTHONDONTWRITE BYTECODE.
Summary: mail-client/thunderbird-24.2.0 - The PYTHONDONTWRITEBYTECODE environment vari...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-31 23:28 UTC by maguire
Modified: 2017-08-26 17:56 UTC (History)
1 user (show)

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


Attachments
mail-client:thunderbird-24.2.0:20140130-174433.log.gz (mail-client:thunderbird-24.2.0:20140130-174433.log.gz,806.64 KB, application/gzip)
2014-01-31 23:28 UTC, maguire
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maguire 2014-01-31 23:28:36 UTC
Created attachment 369230 [details]
mail-client:thunderbird-24.2.0:20140130-174433.log.gz

Thunderbird-24.2.0 emerge fails during the compile phase.  The relevant portion of the build log---that containing the "PYTHONDONTWRITEBYTECODE" comment---is here (the complete build log is attached as a 'gzip'ped file):

rm -rf ../../../mozilla/_tests/mozmill/../mozmill-virtualenv && \
mkdir ../../../mozilla/_tests/mozmill/../mozmill-virtualenv && \
unset MACOSX_DEPLOYMENT_TARGET && \
/var/tmp/portage/mail-client/thunderbird-24.2.0/work/comm-esr24/tbird/mozilla/_virtualenv/bin/python ../../../mozilla/_tests/mozmill/resources/installmozmill.py ../../../mozilla/_tests/mozmill/../mozmill-virtualenv
Python: 2.7.5 (default, Jan 29 2014, 15:51:57)
[GCC 4.7.3]
The PYTHONDONTWRITEBYTECODE environment variable is not compatible with setuptools. Either use --distribute or unset PYTHONDONTWRITEBYTECODE.
Failure to install virtualenv
make[6]: *** [mozmill-virtualenv] Error 2
make[6]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-24.2.0/work/comm-esr24/tbird/mail/test/mozmill'

Here is my "emerge -pqv" output:

[ebuild     U ] mail-client/thunderbird-24.2.0 [10.0.11] USE="alsa dbus debug lightning -bindist -crypt -custom-cflags -custom-optimization -gstreamer% -jit% -ldap% -libnotify -minimal -mozdom -pulseaudio% (-selinux) -startup-notification -system-cairo% -system-icu% -system-jpeg% -system-sqlite -wifi (-gconf%) (-ipc%*) (-webm%)" LINGUAS="-ar -ast -be -bg -bn_BD -br -ca -cs -da -de -el -en_GB -es_AR -es_ES -et -eu -fi -fr -fy_NL -ga_IE -gd -gl -he -hr% -hu -hy_AM% -id -is -it -ja -ko -lt -nb_NO -nl -nn_NO -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -sq -sr -sv_SE -ta_LK -tr -uk -vi -zh_CN -zh_TW"

Here is my "emerge --info" output:

Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.7.10-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.7.10-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.2
KiB Mem:    12300716 total,   3062880 free
KiB Swap:   97908120 total,  97833124 free
Timestamp of tree: Thu, 30 Jan 2014 09:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo my_local_overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.wetzlmayr.com/ http://gentoo.arcticnetwork.ca/ http://www.cyberuse.com/gentoo/ http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.binarycompass.org http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X alsa amd64 berkdb bitmap-fonts bzip2 cleartype corefonts cups curl cxx dbus dri egl ethereal fftw foomaticdb gallium gcj gdbm gif ginac gmp hddtemp imagemagick ipc java jpeg keymap kmod kpathsea lcms less libkms libwww loop-aes lua mbox mjpeg mmx mozilla multilib ncurses nfsv3 nptl nptlonly openrc pam pcre pdf perl plotutils png postscript ppds python python2 readline real sasl sdl slang slp sndfile spell sse sse2 ssl static-libs svg syslog tcltk tcpd tetex threads tiff truetype truetype-fonts type1 type1-fonts udev unicode usb xinerama xml xml2 xorg xpm xv zlib" ABI_X86="64" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I believe I have a work-around; I created the file "/etc/portage/env/mail-client/thunderbird", which contains a single line:
PYTHONDONTWRITEBYTECODE=""
But even though this work-around allowed the emerge to complete successfully, I believe that this problem with PYTHONDONTWRITEBYTECODE is a bug.

(This is my first bug submission, so please let me know if I did anything wrong!  Thanks.)
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2016-02-29 08:04:13 UTC
(In reply to maguire from comment #0)
> (This is my first bug submission, so please let me know if I did anything
> wrong!  Thanks.)

Hi, you did everything just fine. Don't worry that nobody responded yet. Do you have any idea where PYTHONDONTWRITEBYTECODE comes from in your environment?
Comment 2 Mike Gilbert gentoo-dev 2016-02-29 15:54:42 UTC
I doubt this bug occurs on a recent system; distribute has since been merged into setuptools, and I'm pretty sure it supports the PYTHONDONTWRITEBYTECODE environment variable.

I would close this as OBSOLETE.
Comment 3 Jory A. Pratt gentoo-dev 2017-08-26 17:56:43 UTC
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system.

Thank You for your support and understanding
The Mozilla Team