Репозитории ALT
S: | 2.7.18-alt11 |
5.1: | 2.5.5-alt0.M51.1 |
4.1: | 2.5.4-alt0.M41.1 |
4.0: | 2.4.5-alt0.M40.1 |
3.0: | 2.4.1-alt5 |
Группа :: Разработка/Python
Пакет: python
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: python-2.6.5-alt-distutils-get_python_lib.patch
Скачать
Скачать
--- 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: