Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nicolas Aviles
gnumeric
Commits
0324b37b
Commit
0324b37b
authored
Oct 27, 2022
by
Morten Welinder
Browse files
configure: try something new for python
Docs for this kind of thing either stink or are too well hidden.
parent
a193d644
Changes
2
Hide whitespace changes
Inline
Side-by-side
NEWS
View file @
0324b37b
...
...
@@ -6,6 +6,7 @@ John Denker:
Morten:
* Improve various desktop environments' icon discovery. [#677]
* New function ENCODEURL. [#658]
* New libpython configuration. [#680]
--------------------------------------------------------------------------
Gnumeric 1.12.53
...
...
configure.ac
View file @
0324b37b
...
...
@@ -918,7 +918,7 @@ if test "x$python_msg" = xyes; then
if test "x$with_native_win32" = xyes ; then
PY_INCLUDES="-I$PY_PREFIX/include"
else
PY_INCLUDES=`$PYTHON
-c
'import sys ; import distutils.sysconfig ; sys.stdout.write("-I" + distutils.sysconfig.get_python_inc()) ; sys.stdout.write(" -I" + distutils.sysconfig.get_python_inc(plat_specific=True))'
`
PY_INCLUDES=`$PYTHON-c
onfig --includes
`
fi
else
PY_INCLUDES="-I$PY_INCLUDE_DIR"
...
...
@@ -949,15 +949,18 @@ if test "x$python_msg" = xyes; then
if test "x$PY_LIB_DIR" = x; then
if test "x$with_native_win32" = xyes ; then
PY_LIB_DIR="$PY_PREFIX/libs"
PY_LIBS="-L$PY_LIB_DIR"
PY_DASHLPYTHON=FIXME
else
PY_LIB
_DIR
=`$PYTHON
-c
'import sys ; import distutils.sysconfig ; sys.stdout.write(distutils.sysconfig.get_config_var("LIBPL"))'
`
PY_DASHLPYTHON=`$PYTHON -c 'import
sys ; import distutils.
sysconfig
;
sys.stdout.write(distutils.
sysconfig.get_config_var("BLDLIBRARY")
)
'`
PY_LIB
S
=`$PYTHON-c
onfig --ldflags
`
PY_DASHLPYTHON=`$PYTHON -c 'import sysconfig;
print(
sysconfig.get_config_var("BLDLIBRARY")
, end="");
'`
fi
else
PY_LIBS="-L$PY_LIB_DIR"
fi
GNM_PY_CFLAGS="$PY_INCLUDES $PYGOBJECT_CFLAGS"
GNM_PY_LDFLAGS="
-L
$PY_LIB
_DIR
$PY_DASHLPYTHON $PYGOBJECT_LIBS"
GNM_PY_LDFLAGS="$PY_LIB
S
$PY_DASHLPYTHON $PYGOBJECT_LIBS"
python_msg="yes (using $PYTHON)"
elif test "x$with_python" = "xyes"; then
AC_MSG_ERROR([$python_msg])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment