Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 999635 Details for
Bug 1200091
Don't require pycurl for setup.py
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch fixing the issue
0001-Workaround-to-not-import-pycurl-in-setup.py.patch (text/plain), 1.18 KB, created by
Pavol Babinčák
on 2015-03-09 16:47:38 UTC
(
hide
)
Description:
Patch fixing the issue
Filename:
MIME Type:
Creator:
Pavol Babinčák
Created:
2015-03-09 16:47:38 UTC
Size:
1.18 KB
patch
obsolete
>From e1972212834925e752eb9baed93df24b2107fdf4 Mon Sep 17 00:00:00 2001 >From: Pavol Babincak <pbabinca@redhat.com> >Date: Mon, 9 Mar 2015 17:44:56 +0100 >Subject: [PATCH] Workaround to not import pycurl in setup.py > >Resolves: rhbz#1200091 >--- > setup.py | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > >diff --git a/setup.py b/setup.py >index bfa4a18..72859af 100644 >--- a/setup.py >+++ b/setup.py >@@ -1,7 +1,23 @@ > # urlgrabber distutils setup > import re as _re >+import sys as _sys >+ >+class _pycurlFake(object): >+ Curl = staticmethod(lambda: None) >+ >+# Unforunately __init__.py imports urlgrabber.grabber which then imports >+# pycurl package. And finally pycurl.Curl() is called in the top level >+# of grabber module. We don't need pycurl nor pycurl.Curl() during >+# setup. Fake this module to be loaded already so we don't need to have >+# pycurl installed at all. Maybe developer wants to install it in later >+# phase. >+_sys.modules["pycurl"] = _pycurlFake >+ >+# We need urlgrabber package for some constants. > import urlgrabber as _urlgrabber > >+del _sys.modules["pycurl"] >+ > name = "urlgrabber" > description = "A high-level cross-protocol url-grabber" > long_description = _urlgrabber.__doc__ >-- >1.9.3 >
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 1200091
: 999635