[sagemath] 01/02: Add sys.path to Cython includes

Tobias Hansen thansen at moszumanska.debian.org
Wed Aug 3 07:54:20 UTC 2016


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

thansen pushed a commit to branch master
in repository sagemath.

commit d4d92ffd66b366e7da7ff13f3a9a648733a424e7
Author: Tobias Hansen <thansen at debian.org>
Date:   Wed Aug 3 07:31:11 2016 +0000

    Add sys.path to Cython includes
---
 debian/patches/debian-cython-sys-path.patch | 15 +++++++++++++++
 debian/patches/debian-temp-userdir.patch    |  4 ++--
 debian/patches/series                       |  1 +
 3 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/debian/patches/debian-cython-sys-path.patch b/debian/patches/debian-cython-sys-path.patch
new file mode 100644
index 0000000..bdf1c79
--- /dev/null
+++ b/debian/patches/debian-cython-sys-path.patch
@@ -0,0 +1,15 @@
+Description: Add sys.path to Cython includes
+ In SageMath this is achieved by patching Cython,
+ in this way we can used an unpatched Cython.
+Origin: https://git.archlinux.org/svntogit/community.git/tree/trunk?h=packages/sagemath
+
+--- a/sage/src/setup.py
++++ b/sage/src/setup.py
+@@ -585,6 +585,7 @@
+         build_dir=SAGE_CYTHONIZED,
+         force=force,
+         aliases=aliases,
++        include_path=sys.path,
+         compiler_directives={
+             'embedsignature': True,
+             'profile': profile,
diff --git a/debian/patches/debian-temp-userdir.patch b/debian/patches/debian-temp-userdir.patch
index a0cd3c8..eb0c76b 100644
--- a/debian/patches/debian-temp-userdir.patch
+++ b/debian/patches/debian-temp-userdir.patch
@@ -71,7 +71,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
  
  #########################################################
  ### Configuration
-@@ -589,6 +590,11 @@
+@@ -590,6 +591,11 @@
              'embedsignature': True,
              'profile': profile,
          })
@@ -83,7 +83,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
  
      open(version_file, 'w').write(version_stamp)
  
-@@ -609,7 +615,7 @@
+@@ -610,7 +616,7 @@
  python_packages, python_modules = find_python_sources(
      SAGE_SRC, ['sage', 'sage_setup'])
  python_data_files = find_extra_files(python_packages,
diff --git a/debian/patches/series b/debian/patches/series
index 9e63c0b..edce7f5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -25,6 +25,7 @@ debian-nauty.patch
 debian-gsl-cblas.patch
 debian-cysignals.patch
 debian-arb.patch
+debian-cython-sys-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