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

Re: Resolve circular dependency of a Python package



On Thu, May 20, 2021 at 07:32:53AM +0200, Jan Gru wrote:
> Those are de-facto runtime dependencies, but ~pcodedmp~ is required by
> ~oletools~ to run the `python setup.py tests` during the build of oletools,
> so it is kind of a build dependency, too. I assume disabling those tests
> selectively, which require ~pcodedmp~ would be a viable solution, since the
> policy suggests to break the loop by utilizing Debian tooling [4]. Is this
> correct?
Yes, assuming it's indeed not needed for the build process.

> If so, I have a practical question about realizing it:  I consulted the
> documentation of pybuild [5] and am able to disable all tests, which might
> not be an apt solution. Therefore I tried to `export
> PYBUILD_TEST_ARGS=-k-test_to_skip` in the rules file, which should disable
> only the test(s) in question. Unfortunately this does not work as I get the
> error error:
> 
> `I: pybuild base:232: python3.9 setup.py test -k-test_to_skip [...snip...]
> error: option -k not recognized`
-k is indeed a pytest option, and the doc you used mentions that.
I'd just disable all tests.

-- 
WBR, wRAR

Attachment: signature.asc
Description: PGP signature


Reply to: