Ticket #6286: pythonid.patch

File pythonid.patch, 1.8 KB (added by smr@…, 11 years ago)
  • boost1.48-1.48.0

    Description: Fix jam option --python-buildid
    Author: Steve Robbins <smr@debian.org>
    Forwarded: http://lists.boost.org/boost-build/2011/11/25446.php
    
    old new  
    9999    BUILD_ID = [ regex.replace $(build-id) "[*\\/:.\"\' ]" "_" ] ;
    100100}
    101101
    102 # Python build id (only for Python libraries)
    103 python-id = [ option.get "python-buildid" ] ;
    104 if $(python-id)
    105 {
    106     PYTHON_ID = [ regex.replace $(python-id) "[*\\/:.\"\']" "_" ] ;
    107 }
    108 
    109102##############################################################################
    110103#
    111104# 1. The 'tag' function that adds decoration suitable to the properties if
  • libs/mpi/build/Jamfile.v2

    old new  
    88#  Authors: Douglas Gregor
    99#           Andrew Lumsdaine
    1010
     11import option ;
     12import regex ;
    1113import mpi ;
    1214import indirect ;
    1315import python ;
     
    2426    <tag>@$(__name__).tag
    2527  ;
    2628
     29# Python build id (only for Python libraries)
     30python-id = [ option.get "python-buildid" ] ;
     31if $(python-id)
     32{
     33    PYTHON_ID = [ regex.replace $(python-id) "[*\\/:.\"\']" "_" ] ;
     34}
     35
    2736rule tag ( name : type ? : property-set )
    2837{
    2938    local result = $(name) ;
  • libs/python/build/Jamfile.v2

    old new  
    22# Software License, Version 1.0. (See accompanying
    33# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
    44
     5import option ;
     6import regex ;
    57import os ;
    68import indirect ;
    79import modules ;
     
    3032        ;
    3133}
    3234
     35# Python build id (only for Python libraries)
     36python-id = [ option.get "python-buildid" ] ;
     37if $(python-id)
     38{
     39    PYTHON_ID = [ regex.replace $(python-id) "[*\\/:.\"\']" "_" ] ;
     40}
     41
     42
    3343rule find-py3-version
    3444{
    3545    local versions = [ feature.values python ] ;