* Mitar <mmi...@gmail.com>, 2011-09-11, 04:48:
There are other problems with cmake Python support:
http://bugs.debian.org/580503

I solved this by passing CMAKE_USE_PYTHON_VERSION parameter to cmake:

PYTHON_VERSION = $(shell $(PYTHON) -c 'import sys; print "%s.%s" %
sys.version_info[:2]')

That could be simplified to:
PYTHON_VERSION = $(shell pyversions -dv)

cmake -DPYTHON_EXECUTABLE=$(PYTHON)
-DCMAKE_USE_PYTHON_VERSION=$(PYTHON_VERSION) ...

CMAKE_USE_PYTHON_VERSION doesn't work with cmake that's currently in unstable.

If you are compiling extensions modules that's not enough, you need to set either:
- PYTHON_EXECUTABLE, PYTHON_INCLUDE_DIR and PYTHON_LIBRARY,
- or Python_ADDITIONAL_VERSIONS (this one requires cmake >= 2.8.4).

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110911105920.ga2...@jwilk.net

Reply via email to