Source: sqlalchemy-i18n
Version: 1.1.0-3
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
sqlalchemy-i18n could not be built reproducibly.
This appears to be because running the tests looks like it is creating
duplicated and nested version of the source tree. As in, the pybuild
{build_dir} contains the sources, as well as a directory under this one
confusingly called build, ie. {build_dir}/build that contains the same
contents.
If "nocheck" is passed to the build, however, then this extra dir is
not created, hence why reproducibility checking flagged this.
Patch attached, although this is more of a concrete demonstration of
the issue rather than a "fix" — the underlying cause is not immediately
apparent.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2026-01-05 10:24:05.888072918 -0800
--- b/debian/rules 2026-01-05 10:31:27.874457858 -0800
@@ -16,4 +16,6 @@
$(eval BUILD_DIR=$(shell pybuild --print '{build_dir}'))
cp -r tests $(BUILD_DIR)
python3 $(CURDIR)/debian/tests/setup-db-and-run-tests.py
+ # Running the tests creates a nested, duplicate copy of the sources?
+ rm -rf $(BUILD_DIR)/build
endif