Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403831 - dev-python/pymtp-0.0.4 fails to build with pypy
Summary: dev-python/pymtp-0.0.4 fails to build with pypy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-15 08:05 UTC by Patrick Lauer
Modified: 2012-02-24 19:31 UTC (History)
0 users

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 Patrick Lauer gentoo-dev 2012-02-15 08:05:08 UTC
running install
running install_lib
creating /var/tmp/portage/dev-python/pymtp-0.0.4/temp/images/2.7
creating /var/tmp/portage/dev-python/pymtp-0.0.4/temp/images/2.7/usr
creating /var/tmp/portage/dev-python/pymtp-0.0.4/temp/images/2.7/usr/lib64
creating /var/tmp/portage/dev-python/pymtp-0.0.4/temp/images/2.7/usr/lib64/python2.7
creating /var/tmp/portage/dev-python/pymtp-0.0.4/temp/images/2.7/usr/lib64/python2.7/site-packages
copying build-2.7/lib/pymtp.py -> /var/tmp/portage/dev-python/pymtp-0.0.4/temp/images/2.7/usr/lib64/python2.7/site-packages
warning: install_lib: byte-compiling is disabled, skipping.

running install_egg_info
Writing /var/tmp/portage/dev-python/pymtp-0.0.4/temp/images/2.7/usr/lib64/python2.7/site-packages/PyMTP-0.0.4-py2.7.egg-info
 * Installation of dev-python/pymtp-0.0.4 with PyPy 1.7 (Python 2.7)...
pypy-c1.7 setup.py build -b build-2.7-pypy-1.7 install --no-compile --root=/var/tmp/portage/dev-python/pymtp-0.0.4/temp/images/2.7-pypy-1.7
'import site' failed
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'install'
 * ERROR: dev-python/pymtp-0.0.4 failed (install phase):
 *   Installation failed with PyPy 1.7 (Python 2.7) in distutils_installation() function
Comment 1 Patrick Lauer gentoo-dev 2012-02-20 15:18:01 UTC
+  20 Feb 2012; Patrick Lauer <patrick@gentoo.org> pymtp-0.0.4.ebuild:
+  Restricting pypy #403831
Comment 2 Marien Zwart (RETIRED) gentoo-dev 2012-02-24 19:31:00 UTC
(In reply to comment #0)
>  * Installation of dev-python/pymtp-0.0.4 with PyPy 1.7 (Python 2.7)...
> pypy-c1.7 setup.py build -b build-2.7-pypy-1.7 install --no-compile
> --root=/var/tmp/portage/dev-python/pymtp-0.0.4/temp/images/2.7-pypy-1.7
> 'import site' failed

This looks like some kind of system issue: I am unable to reproduce it with pypy-1.8-r1 (confirmed creating an mtp instance and calling connect() on it works, although in my case that just means "raises NoDeviceConnected"). I've removed the restriction again, please reopen if you can reproduce this failure.