Blame SOURCES/00121-add-Modules-to-build-path.patch

98d66e
--- Python-2.7.5/Lib/site.py.orig	2013-05-16 12:47:55.000000000 +0200
98d66e
+++ Python-2.7.5/Lib/site.py	2013-05-16 12:56:20.089058109 +0200
98d66e
@@ -529,6 +529,10 @@ def main():
98d66e
 
98d66e
     abs__file__()
98d66e
     known_paths = removeduppaths()
98d66e
+    from sysconfig import is_python_build
98d66e
+    if is_python_build():
98d66e
+        from _sysconfigdata import build_time_vars
98d66e
+        sys.path.append(os.path.join(build_time_vars['abs_builddir'], 'Modules'))
98d66e
     if ENABLE_USER_SITE is None:
98d66e
         ENABLE_USER_SITE = check_enableusersite()
98d66e
     known_paths = addusersitepackages(known_paths)