[pyfai] 06/06: fix compilation

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Fri Oct 17 12:41:04 UTC 2014


This is an automated email from the git hooks/post-receive script.

picca pushed a commit to branch experimental
in repository pyfai.

commit dbd1be2fa6c95d41d80bed8b467183708a25108c
Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
Date:   Fri Oct 17 14:18:55 2014 +0200

    fix compilation
---
 ...tream-histogram-build-when-.c-file-is-mis.patch | 34 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 35 insertions(+)

diff --git a/debian/patches/0001-fix-for-upstream-histogram-build-when-.c-file-is-mis.patch b/debian/patches/0001-fix-for-upstream-histogram-build-when-.c-file-is-mis.patch
new file mode 100644
index 0000000..05a2524
--- /dev/null
+++ b/debian/patches/0001-fix-for-upstream-histogram-build-when-.c-file-is-mis.patch
@@ -0,0 +1,34 @@
+From: =?UTF-8?q?Picca=20Fr=C3=A9d=C3=A9ric-Emmanuel?=
+ <picca at synchrotron-soleil.fr>
+Date: Fri, 17 Oct 2014 14:17:50 +0200
+Subject: fix for upstream histogram build when .c file is missing
+
+---
+ setup.py | 13 ++++++++-----
+ 1 file changed, 8 insertions(+), 5 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 5d64589..43e5121 100644
+--- a/setup.py
++++ b/setup.py
+@@ -52,12 +52,15 @@ def copy(infile, outfile, folder=None):
+     if folder:
+         infile = os.path.join(folder, infile)
+         outfile = os.path.join(folder, outfile)
+-    if os.path.exists(outfile):
+-        os.unlink(outfile)
+-    if "link" in dir(os):
+-        os.link(infile, outfile)
++    if os.path.exists(infile):
++        if os.path.exists(outfile):
++            os.unlink(outfile)
++        if "link" in dir(os):
++            os.link(infile, outfile)
++        else:
++            shutil.copy(infile, outfile)
+     else:
+-        shutil.copy(infile, outfile)
++        print("Skipping copy of %s -> %s which is missing" % (infile, outfile))
+ 
+ 
+ cmdclass = {}
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..49ea2f4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-fix-for-upstream-histogram-build-when-.c-file-is-mis.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyfai.git



More information about the debian-science-commits mailing list