27 |
27 |
28 |
28 |
29 $(BUILD_DIR)/%-2.6/.built: PYTHON_VERSION=2.6 |
29 $(BUILD_DIR)/%-2.6/.built: PYTHON_VERSION=2.6 |
30 $(BUILD_DIR)/%-2.7/.built: PYTHON_VERSION=2.7 |
30 $(BUILD_DIR)/%-2.7/.built: PYTHON_VERSION=2.7 |
31 $(BUILD_DIR)/%-3.4/.built: PYTHON_VERSION=3.4 |
31 $(BUILD_DIR)/%-3.4/.built: PYTHON_VERSION=3.4 |
|
32 $(BUILD_DIR)/%-3.5/.built: PYTHON_VERSION=3.5 |
32 $(BUILD_DIR)/$(MACH32)-%/.built: BITS=32 |
33 $(BUILD_DIR)/$(MACH32)-%/.built: BITS=32 |
33 $(BUILD_DIR)/$(MACH64)-%/.built: BITS=64 |
34 $(BUILD_DIR)/$(MACH64)-%/.built: BITS=64 |
34 |
35 |
35 $(BUILD_DIR)/%-2.6/.installed: PYTHON_VERSION=2.6 |
36 $(BUILD_DIR)/%-2.6/.installed: PYTHON_VERSION=2.6 |
36 $(BUILD_DIR)/%-2.7/.installed: PYTHON_VERSION=2.7 |
37 $(BUILD_DIR)/%-2.7/.installed: PYTHON_VERSION=2.7 |
37 $(BUILD_DIR)/%-3.4/.installed: PYTHON_VERSION=3.4 |
38 $(BUILD_DIR)/%-3.4/.installed: PYTHON_VERSION=3.4 |
|
39 $(BUILD_DIR)/%-3.5/.installed: PYTHON_VERSION=3.5 |
38 $(BUILD_DIR)/$(MACH32)-%/.installed: BITS=32 |
40 $(BUILD_DIR)/$(MACH32)-%/.installed: BITS=32 |
39 $(BUILD_DIR)/$(MACH64)-%/.installed: BITS=64 |
41 $(BUILD_DIR)/$(MACH64)-%/.installed: BITS=64 |
40 |
42 |
41 $(BUILD_DIR)/%-2.6/.tested: PYTHON_VERSION=2.6 |
43 $(BUILD_DIR)/%-2.6/.tested: PYTHON_VERSION=2.6 |
42 $(BUILD_DIR)/%-2.7/.tested: PYTHON_VERSION=2.7 |
44 $(BUILD_DIR)/%-2.7/.tested: PYTHON_VERSION=2.7 |
43 $(BUILD_DIR)/%-3.4/.tested: PYTHON_VERSION=3.4 |
45 $(BUILD_DIR)/%-3.4/.tested: PYTHON_VERSION=3.4 |
|
46 $(BUILD_DIR)/%-3.5/.tested: PYTHON_VERSION=3.5 |
44 $(BUILD_DIR)/$(MACH32)-%/.tested: BITS=32 |
47 $(BUILD_DIR)/$(MACH32)-%/.tested: BITS=32 |
45 $(BUILD_DIR)/$(MACH64)-%/.tested: BITS=64 |
48 $(BUILD_DIR)/$(MACH64)-%/.tested: BITS=64 |
46 |
49 |
47 $(BUILD_DIR)/%-2.6/.tested-and-compared: PYTHON_VERSION=2.6 |
50 $(BUILD_DIR)/%-2.6/.tested-and-compared: PYTHON_VERSION=2.6 |
48 $(BUILD_DIR)/%-2.7/.tested-and-compared: PYTHON_VERSION=2.7 |
51 $(BUILD_DIR)/%-2.7/.tested-and-compared: PYTHON_VERSION=2.7 |
49 $(BUILD_DIR)/%-3.4/.tested-and-compared: PYTHON_VERSION=3.4 |
52 $(BUILD_DIR)/%-3.4/.tested-and-compared: PYTHON_VERSION=3.4 |
|
53 $(BUILD_DIR)/%-3.5/.tested-and-compared: PYTHON_VERSION=3.5 |
50 $(BUILD_DIR)/$(MACH32)-%/.tested-and-compared: BITS=32 |
54 $(BUILD_DIR)/$(MACH32)-%/.tested-and-compared: BITS=32 |
51 $(BUILD_DIR)/$(MACH64)-%/.tested-and-compared: BITS=64 |
55 $(BUILD_DIR)/$(MACH64)-%/.tested-and-compared: BITS=64 |
52 |
56 |
53 $(BUILD_DIR)/%-2.6/.system-tested: PYTHON_VERSION=2.6 |
57 $(BUILD_DIR)/%-2.6/.system-tested: PYTHON_VERSION=2.6 |
54 $(BUILD_DIR)/%-2.7/.system-tested: PYTHON_VERSION=2.7 |
58 $(BUILD_DIR)/%-2.7/.system-tested: PYTHON_VERSION=2.7 |
55 $(BUILD_DIR)/%-3.4/.system-tested: PYTHON_VERSION=3.4 |
59 $(BUILD_DIR)/%-3.4/.system-tested: PYTHON_VERSION=3.4 |
|
60 $(BUILD_DIR)/%-3.5/.system-tested: PYTHON_VERSION=3.5 |
56 $(BUILD_DIR)/$(MACH32)-%/.system-tested: BITS=32 |
61 $(BUILD_DIR)/$(MACH32)-%/.system-tested: BITS=32 |
57 $(BUILD_DIR)/$(MACH64)-%/.system-tested: BITS=64 |
62 $(BUILD_DIR)/$(MACH64)-%/.system-tested: BITS=64 |
58 |
63 |
59 $(BUILD_DIR)/%-2.6/.system-tested-and-compared: PYTHON_VERSION=2.6 |
64 $(BUILD_DIR)/%-2.6/.system-tested-and-compared: PYTHON_VERSION=2.6 |
60 $(BUILD_DIR)/%-2.7/.system-tested-and-compared: PYTHON_VERSION=2.7 |
65 $(BUILD_DIR)/%-2.7/.system-tested-and-compared: PYTHON_VERSION=2.7 |
61 $(BUILD_DIR)/%-3.4/.system-tested-and-compared: PYTHON_VERSION=3.4 |
66 $(BUILD_DIR)/%-3.4/.system-tested-and-compared: PYTHON_VERSION=3.4 |
|
67 $(BUILD_DIR)/%-3.5/.system-tested-and-compared: PYTHON_VERSION=3.5 |
62 $(BUILD_DIR)/$(MACH32)-%/.system-tested-and-compared: BITS=32 |
68 $(BUILD_DIR)/$(MACH32)-%/.system-tested-and-compared: BITS=32 |
63 $(BUILD_DIR)/$(MACH64)-%/.system-tested-and-compared: BITS=64 |
69 $(BUILD_DIR)/$(MACH64)-%/.system-tested-and-compared: BITS=64 |
64 |
70 |
65 BUILD_32 = $(PYTHON2_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.built) |
71 BUILD_32 = $(PYTHON2_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.built) |
66 BUILD_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.built) |
72 BUILD_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.built) |
67 BUILD_NO_ARCH = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%/.built) |
73 BUILD_NO_ARCH = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%/.built) |
68 ifeq ($(PYTHON_VERSION),3.4) |
74 ifeq ($(PYTHON_VERSION),3.4) |
69 BUILD_32_and_64 = $(BUILD_64) |
75 BUILD_32_and_64 = $(BUILD_64) |
70 endif |
76 endif |
|
77 ifeq ($(PYTHON_VERSION),3.5) |
|
78 BUILD_32_and_64 = $(BUILD_64) |
|
79 endif |
71 |
80 |
72 INSTALL_32 = $(PYTHON2_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.installed) |
81 INSTALL_32 = $(PYTHON2_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.installed) |
73 INSTALL_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.installed) |
82 INSTALL_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.installed) |
74 INSTALL_NO_ARCH = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%/.installed) |
83 INSTALL_NO_ARCH = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%/.installed) |
75 ifeq ($(PYTHON_VERSION),3.4) |
84 ifeq ($(PYTHON_VERSION),3.4) |
|
85 INSTALL_32_and_64 = $(INSTALL_64) |
|
86 endif |
|
87 ifeq ($(PYTHON_VERSION),3.5) |
76 INSTALL_32_and_64 = $(INSTALL_64) |
88 INSTALL_32_and_64 = $(INSTALL_64) |
77 endif |
89 endif |
78 |
90 |
79 PYTHON_ENV = CC="$(CC)" |
91 PYTHON_ENV = CC="$(CC)" |
80 PYTHON_ENV += CFLAGS="$(CFLAGS)" |
92 PYTHON_ENV += CFLAGS="$(CFLAGS)" |
83 COMPONENT_BUILD_ENV += $(PYTHON_ENV) |
95 COMPONENT_BUILD_ENV += $(PYTHON_ENV) |
84 COMPONENT_INSTALL_ENV += $(PYTHON_ENV) |
96 COMPONENT_INSTALL_ENV += $(PYTHON_ENV) |
85 COMPONENT_TEST_ENV += $(PYTHON_ENV) |
97 COMPONENT_TEST_ENV += $(PYTHON_ENV) |
86 COMPONENT_SYSTEM_TEST_ENV += $(PYTHON_ENV) |
98 COMPONENT_SYSTEM_TEST_ENV += $(PYTHON_ENV) |
87 |
99 |
88 # If we are building Python 2.7 or 3.4 support, build them and install them |
100 # Build the canonical version (currently 2.7) last. |
89 # before Python 2.6, so 2.6 is installed last and is the canonical version. |
101 ifneq ($(findstring 2.6,$(PYTHON_VERSIONS)),) |
90 # When we change the default, the new default should go last. |
102 $(BUILD_DIR)/%-2.7/.built: $(BUILD_DIR)/%-2.6/.built |
91 ifneq ($(findstring 2.7,$(PYTHON_VERSIONS)),) |
103 $(BUILD_DIR)/%-2.7/.installed: $(BUILD_DIR)/%-2.6/.installed |
92 $(BUILD_DIR)/%-2.6/.built: $(BUILD_DIR)/%-2.7/.built |
|
93 $(BUILD_DIR)/%-2.6/.installed: $(BUILD_DIR)/%-2.7/.installed |
|
94 endif |
104 endif |
95 ifneq ($(findstring 3.4,$(PYTHON_VERSIONS)),) |
105 ifneq ($(findstring 3.4,$(PYTHON_VERSIONS)),) |
96 $(BUILD_DIR)/%-2.6/.built: $(BUILD_DIR)/%-3.4/.built |
106 $(BUILD_DIR)/%-2.7/.built: $(BUILD_DIR)/%-3.4/.built |
97 $(BUILD_DIR)/%-2.6/.installed: $(BUILD_DIR)/%-3.4/.installed |
107 $(BUILD_DIR)/%-2.7/.installed: $(BUILD_DIR)/%-3.4/.installed |
|
108 endif |
|
109 ifneq ($(findstring 3.5,$(PYTHON_VERSIONS)),) |
|
110 5(BUILD_DIR)/%-2.7/.built: $(BUILD_DIR)/%-3.5/.built |
|
111 $(BUILD_DIR)/%-2.7/.installed: $(BUILD_DIR)/%-3.5/.installed |
98 endif |
112 endif |
99 |
113 |
100 # Create a distutils config file specific to the combination of build |
114 # Create a distutils config file specific to the combination of build |
101 # characteristics (bittedness x Python version), and put it in its own |
115 # characteristics (bittedness x Python version), and put it in its own |
102 # directory. We can set $HOME to point distutils at it later, allowing |
116 # directory. We can set $HOME to point distutils at it later, allowing |
166 TEST_NO_ARCH = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%/.tested-and-compared) |
180 TEST_NO_ARCH = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%/.tested-and-compared) |
167 endif |
181 endif |
168 ifeq ($(PYTHON_VERSION),3.4) |
182 ifeq ($(PYTHON_VERSION),3.4) |
169 TEST_32_and_64 = $(TEST_64) |
183 TEST_32_and_64 = $(TEST_64) |
170 endif |
184 endif |
|
185 ifeq ($(PYTHON_VERSION),3.5) |
|
186 TEST_32_and_64 = $(TEST_64) |
|
187 endif |
171 ifeq ($(strip $(wildcard $(COMPONENT_SYSTEM_TEST_RESULTS_DIR)/results-*.master)),) |
188 ifeq ($(strip $(wildcard $(COMPONENT_SYSTEM_TEST_RESULTS_DIR)/results-*.master)),) |
172 SYSTEM_TEST_32 = $(PYTHON2_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.system-tested) |
189 SYSTEM_TEST_32 = $(PYTHON2_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.system-tested) |
173 SYSTEM_TEST_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.system-tested) |
190 SYSTEM_TEST_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.system-tested) |
174 SYSTEM_TEST_NO_ARCH = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%/.system-tested) |
191 SYSTEM_TEST_NO_ARCH = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%/.system-tested) |
175 else |
192 else |
176 SYSTEM_TEST_32 = $(PYTHON2_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.system-tested-and-compared) |
193 SYSTEM_TEST_32 = $(PYTHON2_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.system-tested-and-compared) |
177 SYSTEM_TEST_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.system-tested-and-compared) |
194 SYSTEM_TEST_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.system-tested-and-compared) |
178 SYSTEM_TEST_NO_ARCH = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%/.system-tested-and-compared) |
195 SYSTEM_TEST_NO_ARCH = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH)-%/.system-tested-and-compared) |
179 endif |
196 endif |
180 ifeq ($(PYTHON_VERSION),3.4) |
197 ifeq ($(PYTHON_VERSION),3.4) |
|
198 SYSTEM_TEST_32_and_64 = $(SYSTEM_TEST_64) |
|
199 endif |
|
200 ifeq ($(PYTHON_VERSION),3.5) |
181 SYSTEM_TEST_32_and_64 = $(SYSTEM_TEST_64) |
201 SYSTEM_TEST_32_and_64 = $(SYSTEM_TEST_64) |
182 endif |
202 endif |
183 |
203 |
184 # test the built source |
204 # test the built source |
185 $(BUILD_DIR)/%/.tested-and-compared: $(COMPONENT_TEST_DEP) |
205 $(BUILD_DIR)/%/.tested-and-compared: $(COMPONENT_TEST_DEP) |