aboutsummaryrefslogtreecommitdiff
blob: c24a56c6bd5d57d6c7310e468795f4bf7771b44b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
--- libs/python/build/Jamfile.v2
+++ libs/python/build/Jamfile.v2
@@ -39,23 +39,6 @@
     PYTHON_ID = [ regex.replace $(python-id) "[*\\/:\"\']" "_" ] ;
 }
 
-
-rule find-py3-version
-{
-    local versions = [ feature.values python ] ;
-    local py3ver ;
-    for local v in $(versions)
-    {
-        if $(v) >= 3.0
-        {
-            py3ver = $(v) ;
-        }
-    }
-    return $(py3ver) ;
-}
-
-py3-version = [ find-py3-version ] ;
-
 project boost/python
   : source-location ../src
   : requirements
@@ -82,7 +65,7 @@
 rule cond ( test ? : yes * : no * ) { if $(test) { return $(yes) ; } else { return $(no) ; } }
 rule unless ( test ? : yes * : no * ) { if ! $(test) { return $(yes) ; } else { return $(no) ; } }
 
-rule lib_boost_python ( is-py3 ? )
+rule lib_boost_python
 {
 
     local python_major_version = [ MATCH "^([^.]+)" : [ feature.values python ] ] ;
@@ -91,7 +74,7 @@
     {
         python2 = true ;
     }
-    lib [ cond $(is-py3) : boost_python3 : boost_python ]
+    lib boost_python
         : # sources
         numeric.cpp
         list.cpp
@@ -148,7 +131,6 @@
             <dependency>config-warning
 
             <python-debugging>on:<define>BOOST_DEBUG_PYTHON
-            [ cond $(is-py3) : <python>$(py3-version) ]
         :   # default build
             <link>shared
         :   # usage requirements
@@ -160,9 +142,3 @@
 
 lib_boost_python ;
 boost-install boost_python ;
-
-if $(py3-version)
-{
-    lib_boost_python yes ;
-    boost-install boost_python3 ;
-}