2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00

Partial fix for not finding the Python library on NT.

[SVN r34852]
This commit is contained in:
Dave Abrahams
2006-08-08 17:55:56 +00:00
parent 49ce46e7fd
commit 18584ebf69

View File

@@ -34,6 +34,7 @@ import "class" : new ;
import os ;
import common ;
import toolset : flags ;
import regex ;
# Make this module a project
project.initialize $(__name__) ;
@@ -296,6 +297,7 @@ rule init-nt ( version : root ? : includes ? : libraries ? : cygwin-condition ?
PYTHON_INCLUDES ?= $(root)/include [ GLOB $(root) : PC ] ;
local PYTHON_VERSION_NODOT = [ regex.match ([0-9]+[.][0-9]+).* : $(version) : 1 ] ;
PYTHON_DLL ?= [ GLOB $(PATH) $(Path) : python$(PYTHON_VERSION_NODOT).dll ] ;
PYTHON_DEBUG_DLL ?= [ GLOB $(PATH) $(Path) : python$(PYTHON_VERSION_NODOT)_d.dll ] ;
PYTHON_IMPORT_LIB ?= [ GLOB $(PYTHON_LIB_PATH) : libpython$(PYTHON_VERSION_NODOT).* ] ;