Do not install patched Cython to buildroot

It is not required, and also try hard to not reference buildroot
in cython arguments.
This commit is contained in:
pcpa 2016-08-24 13:58:32 -04:00
parent 35785b9c1d
commit 9737ac2051
2 changed files with 12 additions and 15 deletions

View file

@ -49,3 +49,15 @@ diff -up src/setup.py.orig src/setup.py
### Install also Jupyter kernel spec
#########################################################
diff -up src/sage/misc/cython.py.orig src/sage/misc/cython.py
--- src/sage/misc/cython.py.orig 2016-08-24 11:51:48.802265784 -0400
+++ src/sage/misc/cython.py 2016-08-24 11:52:36.723267619 -0400
@@ -426,7 +426,7 @@ extra_compile_args = %s
ext_modules = [Extension('%s', sources=['%s.%s', %s],
libraries=%s,
- library_dirs=[SAGE_LOCAL + '/lib/'] + %s,
+ library_dirs=[os.path.realpath(SAGE_LOCAL + '/lib/')] + %s,
extra_compile_args = extra_compile_args,
language = '%s' )]