Boost logo

Boost-Build :

Subject: [Boost-build] How to query Python version within Jamfiles
From: Oliver Koenig (koenig_at_[hidden])
Date: 2010-09-15 15:25:56


  Hello,
is it possible to extract the major version of Python used within the
current build (typically specified in user-config.jam) and store it in
a constant?
This would allow us to switch automatically between different,
Python-version dependant directories with prebuilt libraries.

Example:
constant PY_VERSION : ?? ;
path-constant VTK_LIB_DIR :
external_packages/lib$(PLATFORM)/vtk-$(VTK_VERSION)-py$(PY_VERSION)/Release
;

Sincerely
ok

-- 
--------------------------------------------
Oliver Koenig
Dr.sc.techn. ETH
Tel direct: +41 (0)44 500 93 64
Mobile:     +41 (0)76 345 90 74
Email:       koenig_at_[hidden]
EVEN - Evolutionary Engineering AG
Technoparkstrasse 1
CH-8005 Zurich
Tel  : +41 (0)44 500 93 60
Fax : +41 (0)44 500 93 61
Mail : info_at_[hidden]
WWW  : www.even-ag.ch
--------------------------------------------
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk