[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pybuild: how to get the build directory name



[Ole Streicher, 2018-03-20]
> test-python%:
>         HOME=/tmp/ PYTHONPATH=$(CURDIR)/.pybuild/pythonX.Y_$*/build python$* debian/tests/pyraf-test.py
> 
> override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%)
> 
> This however does not work anymore, since the subdir under .pybuild is
> now changed to cpython2_2.7_pyraf resp. cpython3_3.6_pyraf.

`pybuild --print build_dir --interpreter python3` or:

`pybuild --print '{build_dir}' --pyver 2.7`
`pybuild --print '{build_dir}' --pyver 3.6`

> To be backward compatible, I would however not like to just follow this
> change. How can I get the correct build dir here?

or even better (without using pybuild's internal paths):

  override_dh_auto_test:
  	dh_auto_test -- --system=custom --test-args '{interpreter} {dir}/debian/tests/pyraf-test.py'

-- 
GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


Reply to: