72 # superfluous files in the proto area are harmless; meanwhile, the .so files |
72 # superfluous files in the proto area are harmless; meanwhile, the .so files |
73 # end up in their proper 32- and 64-bit locations. But Python 3.4 is built |
73 # end up in their proper 32- and 64-bit locations. But Python 3.4 is built |
74 # 64-bit only, so we have an extra sed edit below to force the .py files into |
74 # 64-bit only, so we have an extra sed edit below to force the .py files into |
75 # the 32-bit location and we manually specify the 32-bit path in the manifest |
75 # the 32-bit location and we manually specify the 32-bit path in the manifest |
76 # to correct for the .so file being installed there instead of the 64-bit path |
76 # to correct for the .so file being installed there instead of the 64-bit path |
77 # where it belongs. |
77 # where it belongs. Further, Python 3.4 needs an extra 'm' on the link and |
|
78 # include paths, plus a tweak to the binary path; see PEP 3149 for details. |
78 COMPONENT_POST_CONFIGURE_ACTION = \ |
79 COMPONENT_POST_CONFIGURE_ACTION = \ |
79 (cd $(@D) ; cp -rp python python2.7 ; \ |
80 (cd $(@D) ; cp -rp python python2.7 ; \ |
80 $(GSED) -i -e 's/2[.]6/2.7/g' `find python2.7 -name Makefile` ; \ |
81 $(GSED) -i -e 's/2[.]6/2.7/g' `find python2.7 -name Makefile` ; \ |
81 cd $(@D) ; cp -rp python python3.4 ; \ |
82 cd $(@D) ; cp -rp python python3.4 ; \ |
82 $(GSED) -i -e 's/2[.]6/3.4/g' -e 's|vendor-packages/64|vendor-packages|' \ |
83 $(GSED) -i -e 's|-lpython2[.]6|-lpython3.4m|' \ |
|
84 -e 's|usr/bin/$(MACH64)/python2[.]6|usr/bin/python3.4m|' \ |
|
85 -e 's|usr/include/python2[.]6|usr/include/python3.4m|' \ |
|
86 -e 's/2[.]6/3.4/g' -e 's|vendor-packages/64|vendor-packages|' \ |
83 `find python3.4 -name Makefile` ; \ |
87 `find python3.4 -name Makefile` ; \ |
84 ) |
88 ) |
85 |
89 |
86 # After we have built/installed libxml2, build/install the python |
90 # After we have built/installed libxml2, build/install the python |
87 # support for python 2.7 and 3.4 |
91 # support for python 2.7 and 3.4 |