#1120068 python-biom-format: please make the build reproducible

#1120068#5
Date:
2025-11-04 19:01:57 UTC
From:
To:
Hi,

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

This is because it generates different content whether the tests are
run, and, relatedly, it installs an "examples/" directory directly
under dist-packages.

I believe it is this line that is the 'cause':

   export PYBUILD_BEFORE_TEST=cp -r {dir}/examples {build_dir}

... and a patch is attached that cleans up with:

   export PYBUILD_AFTER_TEST=rm -rf {build_dir}/examples


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


Regards,

#1120068#10
Date:
2025-11-04 21:07:40 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-biom-format, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1120068@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Étienne Mollier <emollier@debian.org> (supplier of updated python-biom-format package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 04 Nov 2025 21:39:49 +0100
Source: python-biom-format
Architecture: source
Version: 2.1.17-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Changed-By: Étienne Mollier <emollier@debian.org>
Closes: 1102990 1120068
Changes:
 python-biom-format (2.1.17-1) unstable; urgency=medium
 .
   [ Étienne Mollier ]
   * New upstream version 2.1.17
   * d/watch: converto to v5 Github template.
   * d/copyright: bump upstream copyright year.
   * d/control: drop redundant Rules-Requires-Root: no.
   * d/control: declare compliance to standards version 4.7.2.
   * d/copyright: remove reference to the old fsf address.
   * d/patches/*: normalize Last-Update timestamps.
   * d/{rules,control}: streamline dh_numpy3 integration.
     This addresses supplemental comments in #1102990.
 .
   [ Chris Lamb ]
   * d/rules: remove examples from dist-packages.
     This makes the build reproducible.  (Closes: #1120068, #1102990)
Checksums-Sha1:
 7f3772fc3ca6588bb59ace2f535786e61bce647a 2673 python-biom-format_2.1.17-1.dsc
 8f0e04e2bb41dd0cf03845367e05a146b2dcf6a3 11894239 python-biom-format_2.1.17.orig.tar.gz
 d82352fcea9665d7b843b45cd2dc3fa3637fa624 11596 python-biom-format_2.1.17-1.debian.tar.xz
Checksums-Sha256:
 114d734cda228753ba5989cd552ff78cf1027a9f1529ba451fc9afffe84265ec 2673 python-biom-format_2.1.17-1.dsc
 1e2fc12e615e4272b4c906cd01c0ed4fb3388d776ccdc649a1ee6a621395cfc4 11894239 python-biom-format_2.1.17.orig.tar.gz
 1322490d1134c8482ef776a1bdc4fe97f27cad228cc81dab21a946457168d0f8 11596 python-biom-format_2.1.17-1.debian.tar.xz
Files:
 7664e3bb3336eae7605dfb1d4b903a5d 2673 python optional python-biom-format_2.1.17-1.dsc
 ef454e493716fdb0714d707c49e7579f 11894239 python optional python-biom-format_2.1.17.orig.tar.gz
 7b5ab80fd6fbddf71e2d420407468ad5 11596 python optional python-biom-format_2.1.17-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmkKZlgUHGVtb2xsaWVy
QGRlYmlhbi5vcmcACgkQeTz2fo8NEdoOtg//f3m/N1E58DBrHEK7YgItprnPGdYj
8sznXqcARk0q82GiJvyOJ+siW1HGkBFZOJLL4opODEN6CNRP5ltkmfBl6RddrhZs
y3QsF8VPnAgNwjW5m4ReVi5yrWDk2RM/m7I+NAkX1YZDfPMaLEPFXE3cflB7dKll
FopFbBwoTYgYgf4QOvB9+o7Dp13nZO1GwPBZ/sxcOpPOPsqfjxY7P5VEk5w5zln+
9hK2aoJh/Ymqe5Ip2TIOg2iIUkU6ZoEJre4Pf5hnJ8TUS/wSIllLCC/meUAqRPQE
Ou7HxRKkx031l+DlEGKJHnluiggh/OnlnwCcAANfsdfvMOWQvh6mBmmWztKacFk8
8zLBxTHwO9a+b6cY1NbISuHsENjEonV3oQGBEv9RQA28oFmJVo4hzaLsbrQF1tQ3
gBggP1YyiuyEpgIDijzm4lYByv0fFljY8vS5NFrRHD/HfHWSxC4ei1utCkhrRD9u
H9pDEpHCQ93YRUYGRQfv3XuHcGy9Xd2aDeox95+lAKxI2CZOBBxVNr8WNiIo0RrL
uZSwAwjMEb2n6YedJSZP5QQJvrC2IlM85FERFEjQPGN49CakBJaJKKL/wr9b5ZAX
6YP94psGrRHiu+U3H9BgTEKx5yn7FI5lIYWcZeY6gnOdj9b9c0niuZ/noYDQA/Wi
UKT8VHBOLZACn/g=
=atX5
-----END PGP SIGNATURE-----

#1120068#21
Date:
2026-03-02 18:26:18 UTC
From:
To:
found 1120068 2.1.17-1
found 1102990 2.1.17-1
thanks

Unfortunately, I think that the interaction of some of the changes
to this bug with the changes made for #1102990 have meant that neither
is actually fixed. As in, the package remains unreproducible, and I
think the examples/ are still shipped under dist-packages.

(Probably related, but is it right that you are installing examples
via the debian/python3-biom-format.examples file? Should that not be
debian/python-biom-format-doc.examples? :)


Regards,