Bug#1141640: cython --generate-shared embeds random temporary path
Rebecca N. Palmer
rebecca_palmer at zoho.com
Tue Jul 7 20:25:59 BST 2026
Package: cython3
Version: 3.1.6+dfsg-3
Severity: wishlist
User: reproducible-builds at lists.alioth.debian.org
Usertags: toolchain randomness
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Control: affects -1 src:scipy src:scikit-learn
When Cython's --generate-shared feature is used, the path
/tmp/tmp[random]/_cyutility.pyx is embedded into the resulting
_cyutility*.so, making it unreproducible.
This feature is currently used by scipy and sklearn, and by the version
of pandas in Salsa (but not the version in the archive).
Possibly related: #1113976 was a similar bug affecting mesonpy + cython
packages more broadly, and was fixed by fixing the path.
More information about the Reproducible-bugs
mailing list