[Build-common-hackers] Bug#374809: cdbs: updated python class needed to achieve the transition

Piotr Ozarowski ozarow at gmail.com
Sat Jun 24 14:57:41 UTC 2006


Please consider adding something similar to attached patch.
It adds support for packages that are arch "all" and depend on
python version >> current.


163a164,168
> # check if current is in build versions
> ifneq ($(cdbs_python_current_version), $(filter $(cdbs_python_current_version), $(shell pyversions -vr)))
> cdbs_python_compile_version := $(word 1, $(strip $(sort $(shell pyversions -vr))))
> cdbs_python_build_versions := $(cdbs_python_compile_version)
> else
164a170
> endif
181a188,191
> ifneq (, $(cdbs_python_compile_version))
> # TODO: versioned dependency
> CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), python${cdbs_python_compile_version}-dev
> else
182a193
> endif
197c208
< 	cd $(DEB_SRCDIR) && python $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
---
> 	cd $(DEB_SRCDIR) && python$(cdbs_python_compile_version) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
208c219
< 	cd $(DEB_SRCDIR) && python $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL)
---
> 	cd $(DEB_SRCDIR) && python$(cdbs_python_compile_version) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL)
233c244
< 	-cd $(DEB_SRCDIR) && python $(DEB_PYTHON_SETUP_CMD) clean $(DEB_PYTHON_CLEAN_ARGS)
---
> 	-cd $(DEB_SRCDIR) && python$(cdbs_python_compile_version) $(DEB_PYTHON_SETUP_CMD) clean $(DEB_PYTHON_CLEAN_ARGS)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20060624/f0503a91/attachment.pgp


More information about the Build-common-hackers mailing list