#1121142 pyasn: please make the build reproducible

#1121142#5
Date:
2025-11-21 18:30:15 UTC
From:
To:
Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
pyasn could not be built reproducibly.

This was because it ships a different binary package depending
on whether the tests are run or not, which was caused in turn by the
testsuite not cleaning up the "data" directory, and some (or all)
of that was ending up in the binary package ... but only if the tests
were run.

Patch attached. However, if the binary package really does need these
files at runtime (eg. for autopkgtests), then the packaging will need
rejigging.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,