Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 315083 Details for
Bug 397385
dev-python/httplib2-0.7.[2,4] suffers test failure with build with pypy-1.7
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ebuild patch
httplib2.patch (text/plain), 1.57 KB, created by
Ian Delaney (RETIRED)
on 2012-06-12 09:18:42 UTC
(
hide
)
Description:
ebuild patch
Filename:
MIME Type:
Creator:
Ian Delaney (RETIRED)
Created:
2012-06-12 09:18:42 UTC
Size:
1.57 KB
patch
obsolete
>diff -ur ../httplib2.orig/httplib2-0.7.4.ebuild ../httplib2/httplib2-0.7.4.ebuild >--- ../httplib2.orig/httplib2-0.7.4.ebuild 2012-06-12 16:38:15.962410833 +0800 >+++ ../httplib2/httplib2-0.7.4.ebuild 2012-06-12 17:03:53.540488189 +0800 >@@ -6,7 +6,7 @@ > PYTHON_DEPEND="2" > SUPPORT_PYTHON_ABIS="1" > >-inherit distutils >+inherit distutils eutils > > DESCRIPTION="A comprehensive HTTP client library" > HOMEPAGE="http://code.google.com/p/httplib2/ http://pypi.python.org/pypi/httplib2" >@@ -24,11 +24,32 @@ > #Restrict Python 3 support until upstream > #issue #189 is solved > >+src_prepare() { >+ distutils_src_prepare >+ # Disable failing tests, findings of Arfrever >+ sed -e "s/testHeadRead/_&/" \ >+ -e "s/import memcache/raise ImportError/" \ >+ -i python2/httplib2test.py python3/httplib2test.py >+ >+ # copy and patch a testfile for pypy >+ cp -f python2/httplib2test.py python2/httplib2test.py1 || die >+ epatch "${FILESDIR}"/${P}-pypy_test.patch || die >+} >+ > src_test() { > testing() { >- pushd "python$(python_get_version --major)" > /dev/null >- "$(PYTHON)" httplib2test.py >- popd > /dev/null >+ local path="${S}/build-${PYTHON_ABI}/lib/" >+ if [[ "${PYTHON_ABI:0:1}" == '2' ]]; then >+ if [[ "${PYTHON_ABI:4:4}" == "pypy" ]]; then >+ cp python2/httplib2test.py1 $path/httplib2test.py || die >+ pushd $path > /dev/null >+ PYTHONPATH=. "$(PYTHON)" httplib2test.py >+ else >+ pushd "python$(python_get_version --major)" > /dev/null >+ PYTHONPATH=$path "$(PYTHON)" httplib2test.py >+ fi >+ popd > /dev/null >+ fi > } > python_execute_function testing > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 397385
:
297665
|
297667
| 315083 |
315085