Use python path from the build system instead of trying to reproduce it
Fedora >= 36 carries a downstream patch which causes distutils.sysconfig
and sysconfig to disagree on the prefix, and with autoconf up to 2.69
using distutils, 2.70 preferring sysconfig and other tools still using
distutils it gets a bit much to guess. So don't.
It's a much nicer solution to the mess that commit
4a0071c339
tried to address as it takes us
out of the equation entirely.
This commit is contained in:
parent
5bac2b2ce3
commit
fdcd486b43
|
@ -175,6 +175,7 @@ atlocal: atlocal.in Makefile
|
||||||
-e "s,[@]usrbindir[@],$(bindir)," \
|
-e "s,[@]usrbindir[@],$(bindir)," \
|
||||||
-e "s,[@]usrlibdir[@],$(libdir)," \
|
-e "s,[@]usrlibdir[@],$(libdir)," \
|
||||||
-e "s,[@]execprefix[@],$(exec_prefix)," \
|
-e "s,[@]execprefix[@],$(exec_prefix)," \
|
||||||
|
-e "s,[@]pyexecdir[@],$(pyexecdir)," \
|
||||||
-e "s,[@]usrlibexecdir[@],$(rpmlibexecdir),g" \
|
-e "s,[@]usrlibexecdir[@],$(rpmlibexecdir),g" \
|
||||||
-e "s,[@]RPMCONFIGDIR[@],$(rpmconfigdir)," \
|
-e "s,[@]RPMCONFIGDIR[@],$(rpmconfigdir)," \
|
||||||
-e "s,[@]PYTHON[@],$(PYTHON)," \
|
-e "s,[@]PYTHON[@],$(PYTHON)," \
|
||||||
|
|
|
@ -7,8 +7,7 @@ export PATH
|
||||||
|
|
||||||
PYTHON=@PYTHON@
|
PYTHON=@PYTHON@
|
||||||
if test "${PYTHON}"; then
|
if test "${PYTHON}"; then
|
||||||
PYLIBDIR=$(${PYTHON} -c "import sysconfig, sys; sys.stdout.write(sysconfig.get_path('platlib', vars={'platbase':'@execprefix@'}))")
|
PYTHONPATH="${abs_builddir}/testing@pyexecdir@"
|
||||||
PYTHONPATH="${abs_builddir}/testing${PYLIBDIR}"
|
|
||||||
export PYTHONPATH
|
export PYTHONPATH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue