From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#22533: Python bytecode reproducibility Date: Tue, 06 Mar 2018 15:43:11 +0100 Message-ID: <87ina9i7sw.fsf@elephly.net> References: <20160202051544.GA11744@jasmine> <87bmqfu44s.fsf@fastmail.com> <87606c23bq.fsf@elephly.net> <874llw101c.fsf@elephly.net> <871sgz1wg0.fsf@elephly.net> <87h8pu153i.fsf@fastmail.com> <87muzlib8u.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etDoz-0008FT-Da for bug-guix@gnu.org; Tue, 06 Mar 2018 09:44:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etDow-0004u6-Kr for bug-guix@gnu.org; Tue, 06 Mar 2018 09:44:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:39056) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etDow-0004tq-Fr for bug-guix@gnu.org; Tue, 06 Mar 2018 09:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1etDow-0001zk-6O for bug-guix@gnu.org; Tue, 06 Mar 2018 09:44:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87muzlib8u.fsf@elephly.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Marius Bakke Cc: 22533@debbugs.gnu.org Ricardo Wurmus writes: > Marius Bakke writes: > >> I suppose we'll have to set PYTHONHASHSEED somewhere in >> python-build-system as well. Did you check if that makes a difference >> for numpy? Perhaps it's enough to set it if we add an auto-compilation >> step? > > Right, I=E2=80=99m going to test this with numpy now. Thanks for the hin= t! It did help with one file, which is now built reproducibly, namely lib/python3.6/site-packages/numpy/testing/nose_tools/__pycache__/utils.cp= ython-36.pyc This leaves five files in numpy that shouldn=E2=80=99t be but unfortunately= are different. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net