Closed humdig closed 9 years ago
I should have locked the dependency on cython to 0.22-r3, you are getting this because of cython 0.22.1, it misses some sage patches.
That fixed it. Thank you.
I just restricted dependencies so it won't happen anymore. I may forward port the patch to 0.22.1 if it becomes a real problem.
If dev-python/cython-0.22 is installed, portage things that this is sufficient for the installation of Sage but these errors pop up again. I've had to specify that cython-0.22-r5 be installed to get Sage to compile properly on my end. Note that it was already unmasked, portage just didn't think it had to update it before installing Sage.
I'm not sure on the best way to specify these requirements (cython at least 0.22-r3 but not 0.22.1) but the current ones can potentially cause this issue for other people still.
It is a fair comment. The only thing I can do is pin the version, which has its own problems (maintenance mainly). In the past I tried to put two requirements at once but it didn't work. The range of options you can give in the ebuild is not fine grained enough.
The alternative is to provide a package.mask file and tell people to use it. I don't want to go there.
Yet another alternative that I have avoided so far but may be required in this case, until such time as cython 0.23 is released and is usable by these ebuild, is to depend on cython::sage-on-gentoo
that force the use of the overlay.
Yeah I don't really have a good fix, I just wanted to point to other users that it is still possible to be seeing this problem. I think leaving everything as-is for now is fine.
I have the same issue.
version of sage
and cython
because I don't provide 6.7 anymore.
Nevermind, I have switched to sage 7 ::sage-on-gentoo which depends on newer cython
When trying to compile sage-6.7-r1 the build fails with the following error:
./sage/ext/stdsage.pxd:38:18: undeclared name not builtin: Py_TYPE Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/Cython/Build/Dependencies.py", line 1003, in cythonize_one_helper return cythonize_one(*m[1:]) File "/usr/lib64/python2.7/site-packages/Cython/Build/Dependencies.py", line 985, in cythonize_one raise CompileError(None, pyx_file) CompileError: sage/categories/map.pyx Cythonizing sage/combinat/designs/orthogonal_arrays_find_recursive.pyx Traceback (most recent call last): File "setup.py", line 565, in
run_cythonize()
File "setup.py", line 557, in run_cythonize
'profile': profile,
File "/usr/lib64/python2.7/site-packages/Cython/Build/Dependencies.py", line 856, in cythonize
result.get(99999) # seconds
File "/usr/lib64/python2.7/multiprocessing/pool.py", line 558, in get
raise self._value
Cython.Compiler.Errors.CompileError: sage/categories/map.pyx