148N/A# The contents of this file are subject to the terms of the 148N/A# Common Development and Distribution License (the "License"). 148N/A# You may not use this file except in compliance with the License. 148N/A# See the License for the specific language governing permissions 148N/A# and limitations under the License. 148N/A# When distributing Covered Code, include this CDDL HEADER in each 148N/A# If applicable, add the following below this CDDL HEADER, with the 148N/A# fields enclosed by brackets "[]" replaced with your own identifying 148N/A# information: Portions Copyright [yyyy] [name of copyright owner] 5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 1002N/A# W3C XML Conformance Test Suites 5680N/A# Cannot link to lzma since it's not in /lib and install media still has separate /usr. 3056N/A# After we have configured, make a copy of the python bits so we can build and 3056N/A# test separate python 2.7 and 3.4 support. Note for 3.4: .py files need to 3056N/A# go in .../vendor-packages (whether building 32-bit or 64-bit) whereas .so 3056N/A# files need to go in .../vendor-packages for 32-bit but .../vendor-packages/64 4982N/A# for 64-bit. For 2.7, Python is built 32- and 64-bit, so .py files end 4982N/A# up in both places even though only the 32-bit location is needed, but the 3056N/A# superfluous files in the proto area are harmless; meanwhile, the .so files 3056N/A# end up in their proper 32- and 64-bit locations. But Python 3.4 is built 3056N/A# 64-bit only, so we have an extra sed edit below to force the .py files into 3056N/A# the 32-bit location and we manually specify the 32-bit path in the manifest 3056N/A# to correct for the .so file being installed there instead of the 64-bit path 3127N/A# where it belongs. Further, Python 3.4 needs an extra 'm' on the link and 3127N/A# include paths, plus a tweak to the binary path; see PEP 3149 for details. 4982N/A $(GSED) -i -e 's|-lpython2[.]7|-lpython3.4m|' \ 4982N/A -e 's/2[.]7/3.4/g' -e 's|vendor-packages/64|vendor-packages|' \ 4982N/A# It's also nice to test python 3.4 modules. 1652N/A# We have patched our 64 bit python so it will search for modules only in 1652N/A# '64/' directories. Now we need to provide one. Otherwise python will 4528N/A '-e "s/^make\[.*$$/[EnD]/" ' \
4528N/A '-e "/^\#\# XML regression tests/,/^\[EnD\]/p" ' \
4528N/A '-e "/^\#\# running Python regression tests/,/^\[EnD\]/p" ' \