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

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