# HG changeset patch # User Danek Duvall # Date 1282762738 25200 # Node ID 90e0c3ea328132de1962ebfa3168125910ae304a # Parent 440b6ca0641dc9757700073385af3b4fd3ed8f38 Implement support for builds with multiple versions of python. diff -r 440b6ca0641d -r 90e0c3ea3281 components/pycups/pycups.p5m --- a/components/pycups/pycups.p5m Wed Aug 11 09:18:07 2010 -0700 +++ b/components/pycups/pycups.p5m Wed Aug 25 11:58:58 2010 -0700 @@ -32,6 +32,11 @@ license COPYING license="GPLv2" dir path=usr dir path=usr/lib +dir path=usr/lib/python2.4 +dir path=usr/lib/python2.4/vendor-packages +dir path=usr/lib/python2.4/vendor-packages/64 +file path=usr/lib/python2.4/vendor-packages/64/cups.so variant.arch=$(ARCH) +file path=usr/lib/python2.4/vendor-packages/cups.so variant.arch=$(ARCH) dir path=usr/lib/python2.6 dir path=usr/lib/python2.6/vendor-packages dir path=usr/lib/python2.6/vendor-packages/64 diff -r 440b6ca0641d -r 90e0c3ea3281 make-rules/setup.py.mk --- a/make-rules/setup.py.mk Wed Aug 11 09:18:07 2010 -0700 +++ b/make-rules/setup.py.mk Wed Aug 25 11:58:58 2010 -0700 @@ -21,11 +21,21 @@ # Copyright (c) 2010, Oracle and/or it's affiliates. All rights reserved. # -$(COMPONENT_SRC)/build-$(MACH32)/.built: BITS=32 -$(COMPONENT_SRC)/build-$(MACH64)/.built: BITS=64 -$(COMPONENT_SRC)/build-$(MACH32)/.installed: BITS=32 -$(COMPONENT_SRC)/build-$(MACH64)/.installed: BITS=64 +$(COMPONENT_SRC)/build-%-2.6/.built: PYTHON_VERSION=2.6 +$(COMPONENT_SRC)/build-%-2.4/.built: PYTHON_VERSION=2.4 +$(COMPONENT_SRC)/build-$(MACH32)-%/.built: BITS=32 +$(COMPONENT_SRC)/build-$(MACH64)-%/.built: BITS=64 +$(COMPONENT_SRC)/build-%-2.6/.installed: PYTHON_VERSION=2.6 +$(COMPONENT_SRC)/build-%-2.4/.installed: PYTHON_VERSION=2.4 +$(COMPONENT_SRC)/build-$(MACH32)-%/.installed: BITS=32 +$(COMPONENT_SRC)/build-$(MACH64)-%/.installed: BITS=64 + +BUILD_32 = $(PYTHON_VERSIONS:%=$(COMPONENT_SRC)/build-$(MACH32)-%/.built) +BUILD_64 = $(PYTHON_VERSIONS:%=$(COMPONENT_SRC)/build-$(MACH64)-%/.built) + +INSTALL_32 = $(PYTHON_VERSIONS:%=$(COMPONENT_SRC)/build-$(MACH32)-%/.installed) +INSTALL_64 = $(PYTHON_VERSIONS:%=$(COMPONENT_SRC)/build-$(MACH64)-%/.installed) # build the configured source $(COMPONENT_SRC)/build-%/.built: $(COMPONENT_SRC)/.prep diff -r 440b6ca0641d -r 90e0c3ea3281 make-rules/shared-macros.mk --- a/make-rules/shared-macros.mk Wed Aug 11 09:18:07 2010 -0700 +++ b/make-rules/shared-macros.mk Wed Aug 25 11:58:58 2010 -0700 @@ -36,6 +36,7 @@ COMPILER = studio BITS = 32 PYTHON_VERSION = 2.6 +PYTHON_VERSIONS = 2.4 2.6 TOOLS = $(WS_TOP)/tools WS_LOGS = $(WS_TOP)/logs