builddate.h \
m4/README m4/lib-ld.m4 m4/lib-link.m4 m4/lib-prefix.m4 \
graphviz.7 Doxyfile.in Doxyfile awk \
- config/config_perl.pl config/config_python.py \
+ config/config_perl.pl \
config/config_ruby.rb config/config_tcl.tcl dot.demo plugin.demo \
macosx windows debian redhat graphviz.sln
+++ /dev/null
-import sys
-from distutils import sysconfig
-
-if sys.argv[1] == "archlib":
- print(sysconfig.get_python_lib(1,1))
-elif sys.argv[1] == "lib":
- print(sysconfig.get_python_lib(0,1))
-elif sys.argv[1] == "archsitelib":
- print(sysconfig.get_python_lib(1,0))
-elif sys.argv[1] == "sitelib":
- print(sysconfig.get_python_lib(0,0))
PYTHON_PREFIX=`$PYTHON -c "import sys; print(sys.prefix)"`
PYTHON_INCLUDES=-I$PYTHON_PREFIX/include/python$PYTHON_VERSION
PYTHON_LIBS="-undefined dynamic_lookup"
- PYTHON_INSTALL_DIR="`$PYTHON $srcdir/config/config_python.py archsitelib`"
+ PYTHON_INSTALL_DIR="`$PYTHON -c 'from distutils import sysconfig; print(sysconfig.get_python_lib(1,0))'`"
save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
AC_CHECK_HEADER(Python.h,,[
use_python3="No (python-$PYTHON3_VERSION.pc not found)"
fi
fi
- PYTHON3_INSTALL_DIR="`$PYTHON3 $srcdir/config/config_python.py archsitelib`"
+ PYTHON3_INSTALL_DIR="`$PYTHON3 -c 'from distutils import sysconfig; print(sysconfig.get_python_lib(1,0))'`"
save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $PYTHON3_INCLUDES"
AC_CHECK_HEADER(Python.h,,[