ALT Linux repos
Group :: Development/Python
RPM: python
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: python-2.6.5-alt-distutils-get_python_lib.patch
Download
Download
--- Python/Lib/distutils/sysconfig.py
+++ Python/Lib/distutils/sysconfig.py
@@ -15,6 +15,7 @@ import os
import re
import string
import sys
+import platform
from distutils.errors import DistutilsPlatformError
@@ -115,8 +116,12 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
prefix = plat_specific and EXEC_PREFIX or PREFIX
if os.name == "posix":
+ if plat_specific == 1 and platform.architecture()[0] == "64bit":
+ lib = "lib64"
+ else:
+ lib = "lib"
libpython = os.path.join(prefix,
- "lib", "python" + get_python_version())
+ lib, "python" + get_python_version())
if standard_lib:
return libpython
else: