﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	launchpad_bug
988	Build fails when byte-compiling is disabled	nero37	somebody	"I have written a gentoo ebuild to build and install tahoe on gentoo systems. In the latest version of python used in gentoo byte-compiling .py files to .pyc/.pyo has been disabled by default, as this functionality is automatically provided by the portage package manager itself when a python package is being installed.

Tahoe now fails to build, for example when building tahoe-1.6.1 with the follow;

{{{
python -B setup.py build    
         
Not found: tahoe-deps
Not found: ../tahoe-deps
warning: build_py: byte-compiling is disabled, skipping.
warning: install_lib: byte-compiling is disabled, skipping.
Traceback (most recent call last):
  File ""setup.py"", line 384, in <module>
    **setup_args
  File ""/usr/lib64/python2.6/distutils/core.py"", line 113, in setup
    _setup_distribution = dist = klass(attrs)
  File ""/usr/lib64/python2.6/site-packages/setuptools/dist.py"", line 221, in __init__
    self.fetch_build_eggs(attrs.pop('setup_requires'))
  File ""/usr/lib64/python2.6/site-packages/setuptools/dist.py"", line 245, in fetch_build_eggs
    parse_requirements(requires), installer=self.fetch_build_egg
  File ""/usr/lib64/python2.6/site-packages/pkg_resources.py"", line 538, in resolve
    dist = best[req.key] = env.best_match(req, self, installer)
  File ""/usr/lib64/python2.6/site-packages/pkg_resources.py"", line 780, in best_match
    return self.obtain(req, installer) # try and download/install
  File ""/usr/lib64/python2.6/site-packages/pkg_resources.py"", line 792, in obtain
    return installer(requirement)
  File ""/usr/lib64/python2.6/site-packages/setuptools/dist.py"", line 293, in fetch_build_egg
    return cmd.easy_install(req)
  File ""/usr/lib64/python2.6/site-packages/setuptools/command/easy_install.py"", line 471, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File ""/usr/lib64/python2.6/site-packages/setuptools/command/easy_install.py"", line 501, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File ""/usr/lib64/python2.6/site-packages/setuptools/command/easy_install.py"", line 680, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File ""/usr/lib64/python2.6/site-packages/setuptools/command/easy_install.py"", line 962, in build_and_install
    eggs.append(self.install_egg(dist.location, setup_base))
  File ""/usr/lib64/python2.6/site-packages/setuptools/command/easy_install.py"", line 718, in install_egg
    (os.path.basename(egg_path),os.path.dirname(destination)))
  File ""/usr/lib64/python2.6/distutils/cmd.py"", line 358, in execute
    util.execute(func, args, msg, dry_run=self.dry_run)
  File ""/usr/lib64/python2.6/distutils/util.py"", line 399, in execute
    apply(func, args)
  File ""/usr/lib64/python2.6/site-packages/setuptools/command/easy_install.py"", line 1024, in unpack_and_compile
    self.byte_compile(to_compile)
  File ""/usr/lib64/python2.6/site-packages/setuptools/command/easy_install.py"", line 1036, in byte_compile
    byte_compile(to_compile, optimize=0, force=1, dry_run=self.dry_run)
  File ""/usr/lib64/python2.6/distutils/util.py"", line 453, in byte_compile
    raise DistutilsByteCompileError('byte-compiling is disabled.')
distutils.errors.DistutilsByteCompileError: byte-compiling is disabled.

}}}
"	defect	closed	major	undecided	packaging	1.6.0	fixed	gentoo install setuptools distutils		
