]> git.ipfire.org Git - ipfire-3.x.git/blame - python/patches/00121-add-Modules-to-build-path.patch
git: Update to 2.23.0
[ipfire-3.x.git] / python / patches / 00121-add-Modules-to-build-path.patch
CommitLineData
48d9a6a0
MT
1--- Python-2.7.5/Lib/site.py.orig 2013-05-16 12:47:55.000000000 +0200
2+++ Python-2.7.5/Lib/site.py 2013-05-16 12:56:20.089058109 +0200
3@@ -529,6 +529,10 @@ def main():
4
5 abs__file__()
6 known_paths = removeduppaths()
7+ from sysconfig import is_python_build
8+ if is_python_build():
9+ from _sysconfigdata import build_time_vars
10+ sys.path.append(os.path.join(build_time_vars['abs_builddir'], 'Modules'))
11 if ENABLE_USER_SITE is None:
12 ENABLE_USER_SITE = check_enableusersite()
13 known_paths = addusersitepackages(known_paths)