Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37428447
en ru br
Репозитории ALT
S:1.83.0-alt2
D:1.37.0-alt2
5.1: 1.39.0-alt3
4.1: 1.34.1-alt1
4.0: 1.33.1-alt4
3.0: 1.32.0-alt2
www.altlinux.org/Changes

Группа :: Разработка/C++
Пакет: boost

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: boost-1.63.0-alt-python-paths.patch
Скачать


index 0dfc750a22..703c501d08 100644
--- a/boost/tools/build/src/tools/python.jam
+++ b/boost/tools/build/src/tools/python.jam
@@ -547,13 +547,9 @@ local rule compute-default-paths ( target-os : version ? : prefix ? :
     }
     else
     {
-        local default-include-path = $(prefix)/include/python$(version) ;
-        if ! [ path.exists $(default-include-path) ] && [ path.exists $(default-include-path)m ]
-        {
-            default-include-path = $(default-include-path)m ;
-        }
-
-        includes ?= $(default-include-path) ;
+        python_includes = [ shell-cmd "printf `python$(version) -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_inc());'`" ] ;
+        python_platincludes = [ shell-cmd "printf `python$(version) -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_inc(plat_specific=1));'`" ] ;
+        includes ?= $(python_includes) $(python_platincludes) ;
 
         local lib = $(exec-prefix)/lib ;
         libraries ?= $(lib)/python$(version)/config $(lib) ;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin