graphviz/python-version.diff
Stephan Kulow e1ff0bc3c5 Accepting request 34972 from home:oertel:branches:openSUSE:Factory
Copy from home:oertel:branches:openSUSE:Factory/graphviz via accept of submit request 34972 revision 5.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/34972
OBS-URL: https://build.opensuse.org/package/show/graphics/graphviz?expand=0&rev=8
2010-03-17 16:17:59 +00:00

12 lines
402 B
Diff

--- configure.ac
+++ configure.ac
@@ -1056,7 +1056,7 @@
if test "x$PYTHON" = "x"; then
use_python="No (python not available)"
else
- PYTHON_VERSION=`$PYTHON -V 2>&1 | $GREP Python | cut -d ' ' -f 2`
+ PYTHON_VERSION=`python -c "import sys; print '%d.%d' % (sys.version_info[[0:2]])"`
if test "x$PYTHON_VERSION" = "x"; then
PYTHON=
else