Source: pysph
Version: 0~20160514.git91867dc-4
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: kernel
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

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

This is because it generates a Python .egg in a directory that is
named with the current kernel version. On the Debian i386 architecture
this can either be i686 or x86_64 when running the 64-bit kernel.

Patch attached that uses --single-version-externally-managed instead,
preventing the generation of the egg in the first place.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/rules      2017-12-12 21:27:30.217492858 +0000
--- b/debian/rules      2017-12-12 22:39:47.621834301 +0000
@@ -13,8 +13,7 @@
 
 override_dh_auto_install:
        dh_numpy
-       mkdir -p $(CURDIR)/debian/tmp/usr/lib/python2.7/site-packages/
-       python setup.py install --prefix=$(CURDIR)/debian/tmp/usr
+       python setup.py install --root=$(CURDIR)/debian/tmp 
--single-version-externally-managed --install-layout=deb --no-compile
        rm -rf 
$(CURDIR)/debian/tmp/usr/lib/python2.7/site-packages/setuptools.pth
        rm -rf $(CURDIR)/debian/tmp/usr/lib/python2.7/site-packages/sit*
 

Reply via email to