[sagemath] 01/01: Fix the cython include path for cysignals
Ximin Luo
infinity0 at debian.org
Sat Oct 1 15:05:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository sagemath.
commit 454fa58b3cfe412d498d0f6d3fd9271fb950633d
Author: Ximin Luo <infinity0 at debian.org>
Date: Sat Oct 1 17:03:46 2016 +0200
Fix the cython include path for cysignals
The original snippet added /usr/lib/python2.7/dist-packages/cysignals to the
include path; however many of sage's files use 'include "cysignals/XXX"' so we
also need to include the parent directory as well.
This fixes 100+ doctests
---
debian/patches/debian-cysignals-include-path.patch | 10 ++++++++++
debian/patches/series | 1 +
2 files changed, 11 insertions(+)
diff --git a/debian/patches/debian-cysignals-include-path.patch b/debian/patches/debian-cysignals-include-path.patch
new file mode 100644
index 0000000..2afa7bd
--- /dev/null
+++ b/debian/patches/debian-cysignals-include-path.patch
@@ -0,0 +1,10 @@
+--- a/sage/src/sage/misc/cython.py
++++ b/sage/src/sage/misc/cython.py
+@@ -241,6 +241,7 @@
+ for path in sys.path:
+ cysignals_path = os.path.join(path, "cysignals")
+ if os.path.isdir(cysignals_path):
++ inc.append(path)
+ inc.append(cysignals_path)
+
+ return s, libs, inc, lang, additional_source_files, args, libdirs
diff --git a/debian/patches/series b/debian/patches/series
index 49f8d45..eed80ec 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -32,6 +32,7 @@ debian-cython-sys-path.patch
debian-sage-env.patch
debian-octave.patch
debian-no-singular-hlp.patch
+debian-cysignals-include-path.patch
# temporary patches for whatever reason
# they will eventually be gotten rid of
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git
More information about the debian-science-commits
mailing list