[master 1/2] Add missing python dependencies for requests. (#1259506)
dashea
installerbot-noreply at redhat.com
Fri Sep 4 15:54:37 UTC 2015
From: David Shea <dshea at redhat.com>
Encoding imports are implicit, so ModuleFinder can't always deal with
them. Explicitly add a dependency of an encoding needed by the requests
module.
---
dracut/python-deps | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dracut/python-deps b/dracut/python-deps
index 1828cbc..95294d0 100755
--- a/dracut/python-deps
+++ b/dracut/python-deps
@@ -26,7 +26,9 @@ from distutils.sysconfig import get_python_lib, get_config_var, get_makefile_fil
sitedir = get_python_lib()
libdir = get_config_var('LIBDEST')
-alsoNeeded = dict()
+# stringprep is needed by the idna encoding, and idna is needed by requests.
+# The encoding import is implicit so ModuleFinder doesn't find it right.
+alsoNeeded = {sitedir+"/requests/__init__.py": libdir+"/stringprep.py"}
# A couple helper functions...
def moduledir(pyfile):
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/a2c4d48f47a4648c25584c8af6c3394a844b8499
More information about the anaconda-patches
mailing list