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)

Attachment: pgpV4Whs4wzAa.pgp
Description: PGP signature

Reply via email to