Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf032f63

Browse files
committed
Temporarily add some information about python include paths to configure.
We're still (seee0e567a,e0e567a) working on replacing use of thedeprecated distutils. This commit just makes configure print out the resultsof different ways of determining the include path. Hopefully this will help usto find a way to transition away from distutils without turning the buildfarmred for prolonged amounts of time.Discussion:https://postgr.es/m/20220124025301.qu36x44w6m67cnap@alap3.anarazel.de
1 parent9c86d93 commitf032f63

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

‎config/python.m4‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,27 @@ if test "$PORTNAME" = win32 ; then
6868
fi
6969
AC_MSG_RESULT([$python_includespec])
7070
71+
python_ways=`${PYTHON} -c "
72+
import distutils.sysconfig as ds
73+
import os
74+
import sysconfig as s
75+
print('ds.get_python_inc(False): %s' % ds.get_python_inc(False))
76+
print('s path include: %s' % s.get_path('include'))
77+
print('ds.get_python_inc(True): %s' % ds.get_python_inc(True))
78+
print('s path platinclude: %s' % s.get_path('platinclude'))
79+
print('ds var INCLUDEPY: %s' % ds.get_config_var('INCLUDEPY'))
80+
print('s var INCLUDEPY: %s' % s.get_config_var('INCLUDEPY'))
81+
print('ds var CONFINCLUDEPY: %s' % ds.get_config_var('CONFINCLUDEPY'))
82+
print('s var CONFINCLUDEPY: %s' % s.get_config_var('CONFINCLUDEPY'))
83+
print('')
84+
print('ds get_python_inc(False)/Python.h exists: %s' % os.path.exists(os.path.join(ds.get_python_inc(False), 'Python.h')))
85+
print('ds get_python_inc(True)/Python.h exists: %s' % os.path.exists(os.path.join(ds.get_python_inc(True), 'Python.h')))
86+
print('s var INCLUDEPY/Python.h exists: %s' % os.path.exists(os.path.join(ds.get_config_var('INCLUDEPY'), 'Python.h')))
87+
print('s var CONFINCLUDEPY/Python.h exists: %s' % os.path.exists(os.path.join(ds.get_config_var('CONFINCLUDEPY'), 'Python.h')))
88+
"` 2>/dev/null
89+
AC_MSG_NOTICE([python include paths, different approaches:
90+
$python_ways])
91+
7192
AC_SUBST(python_majorversion)[]dnl
7293
AC_SUBST(python_version)[]dnl
7394
AC_SUBST(python_includespec)[]dnl

‎configure‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10383,6 +10383,29 @@ fi
1038310383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
1038410384
$as_echo "$python_includespec" >&6; }
1038510385

10386+
python_ways=`${PYTHON} -c "
10387+
import distutils.sysconfig as ds
10388+
import os
10389+
import sysconfig as s
10390+
print('ds.get_python_inc(False): %s' % ds.get_python_inc(False))
10391+
print('s path include: %s' % s.get_path('include'))
10392+
print('ds.get_python_inc(True): %s' % ds.get_python_inc(True))
10393+
print('s path platinclude: %s' % s.get_path('platinclude'))
10394+
print('ds var INCLUDEPY: %s' % ds.get_config_var('INCLUDEPY'))
10395+
print('s var INCLUDEPY: %s' % s.get_config_var('INCLUDEPY'))
10396+
print('ds var CONFINCLUDEPY: %s' % ds.get_config_var('CONFINCLUDEPY'))
10397+
print('s var CONFINCLUDEPY: %s' % s.get_config_var('CONFINCLUDEPY'))
10398+
print('')
10399+
print('ds get_python_inc(False)/Python.h exists: %s' % os.path.exists(os.path.join(ds.get_python_inc(False), 'Python.h')))
10400+
print('ds get_python_inc(True)/Python.h exists: %s' % os.path.exists(os.path.join(ds.get_python_inc(True), 'Python.h')))
10401+
print('s var INCLUDEPY/Python.h exists: %s' % os.path.exists(os.path.join(ds.get_config_var('INCLUDEPY'), 'Python.h')))
10402+
print('s var CONFINCLUDEPY/Python.h exists: %s' % os.path.exists(os.path.join(ds.get_config_var('CONFINCLUDEPY'), 'Python.h')))
10403+
"` 2>/dev/null
10404+
{ $as_echo "$as_me:${as_lineno-$LINENO}: python include paths, different approaches:
10405+
$python_ways" >&5
10406+
$as_echo "$as_me: python include paths, different approaches:
10407+
$python_ways" >&6;}
10408+
1038610409

1038710410

1038810411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp