components/python/python27/Makefile
changeset 3872 22a6f441c13d
parent 3817 30b42c38bbc4
child 4339 6501cf9c29f9
equal deleted inserted replaced
3871:ddf9e355ac16 3872:22a6f441c13d
   139 #    to avoid this.
   139 #    to avoid this.
   140 # 3. Strip build machine paths from _sysconfigdata.py & config/Makefile.
   140 # 3. Strip build machine paths from _sysconfigdata.py & config/Makefile.
   141 #    Note that although the 64-bit version is not used (and thus commented
   141 #    Note that although the 64-bit version is not used (and thus commented
   142 #    out in the manifest), we still need to specify the 32-/64-bit paths,
   142 #    out in the manifest), we still need to specify the 32-/64-bit paths,
   143 #    otherwise the 64-bit build will fail to find the 32-bit path.
   143 #    otherwise the 64-bit build will fail to find the 32-bit path.
       
   144 # 4. (Re)compile _sysconfigdata.py since we just updated it.
   144 CONFIG_MAKEFILE.32=	lib/python2.7/config/Makefile
   145 CONFIG_MAKEFILE.32=	lib/python2.7/config/Makefile
   145 CONFIG_MAKEFILE.64=	lib/$(MACH64)/python2.7/config/Makefile
   146 CONFIG_MAKEFILE.64=	lib/$(MACH64)/python2.7/config/Makefile
   146 CONFIG_MAKEFILE=	$(CONFIG_MAKEFILE.$(BITS))
   147 CONFIG_MAKEFILE=	$(CONFIG_MAKEFILE.$(BITS))
   147 COMPONENT_POST_INSTALL_ACTION= \
   148 COMPONENT_POST_INSTALL_ACTION= \
   148             (cd $(PROTOUSRDIR) ;  \
   149             (cd $(PROTOUSRDIR) ;  \
   149              $(MV) include/python2.7/pyconfig.h include/python2.7/pyconfig-$(BITS).h ; \
   150              $(MV) include/python2.7/pyconfig.h include/python2.7/pyconfig-$(BITS).h ; \
   150              $(TOUCH) lib/python2.7/lib2to3/*.pickle ; \
   151              $(TOUCH) lib/python2.7/lib2to3/*.pickle ; \
   151 	     $(GSED) -i -e 's|$(SOURCE_DIR)|.|g' -e 's|$(COMPONENT_DIR)|..|g' \
   152 	     $(GSED) -i -e 's|$(SOURCE_DIR)|.|g' -e 's|$(COMPONENT_DIR)|..|g' \
   152 		-e 's|$(SPRO_VROOT)/bin/||g' lib/python2.7/_sysconfigdata.py \
   153 		-e 's|$(SPRO_VROOT)/bin/||g' lib/python2.7/_sysconfigdata.py \
   153 		$(CONFIG_MAKEFILE))
   154 		$(CONFIG_MAKEFILE); \
       
   155 	     $(PYTHON.2.7) -m py_compile lib/python2.7/_sysconfigdata.py)
   154 
   156 
   155 ASLR_MODE = $(ASLR_ENABLE)
   157 ASLR_MODE = $(ASLR_ENABLE)
   156 
   158 
   157 # common targets
   159 # common targets
   158 $(INSTALL_32):  $(INSTALL_64)
   160 $(INSTALL_32):  $(INSTALL_64)