Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Cython 0.28 build break of qhull.pyx #8581

Merged
merged 2 commits into from
Mar 24, 2018

Conversation

oleksandr-pavlyk
Copy link
Contributor

@oleksandr-pavlyk oleksandr-pavlyk commented Mar 20, 2018

Fixes build break reported in cython/cython#2154

Fixes #8562

@pv
Copy link
Member

pv commented Mar 20, 2018 via email

@oleksandr-pavlyk
Copy link
Contributor Author

Surprisingly no. Cythonization of modified qhull.pyx goes through for me with Cython 0.27.3.

@ilayn
Copy link
Member

ilayn commented Mar 20, 2018

It does fail on Travis though with __doc__ not writable error.

@pv
Copy link
Member

pv commented Mar 20, 2018 via email

@pv
Copy link
Member

pv commented Mar 20, 2018 via email

@rgommers rgommers added scipy.spatial maintenance Items related to regular maintenance tasks backport-candidate This fix should be ported by a maintainer to previous SciPy versions. labels Mar 20, 2018
@@ -2353,7 +2362,7 @@ class ConvexHull(_QhullUser):
self._vertices = np.unique(self.simplices)
return self._vertices

ConvexHull.add_points.__func__.__doc__ = _QhullUser._add_points.__doc__
_set_docs(ConvexHull.add_points, _QhullUser._add_points.__doc__)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second argument should not have .__doc__.

Delaunay.add_points.__func__.__doc__ = _QhullUser._add_points.__doc__
# Set docstring for foo to docstring of bar, working around change in Cython 0.28
# See https://github.com/scipy/scipy/pull/8581
def _set_docs(foo, bar):
Copy link
Member

@pv pv Mar 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dst, src, not foo, bar probably.
And maybe _copy_docs.

@oleksandr-pavlyk
Copy link
Contributor Author

All builds were green. I squashed all changes of qhull.pyx into a single commit. Ready to merge.

@rgommers
Copy link
Member

LGTM. This looks like a safe fix - I'd like to take it along for 1.0.1; an incompatibility with latest Cython is annoying. @pv sound okay?

@pv
Copy link
Member

pv commented Mar 23, 2018 via email

@rgommers rgommers merged commit b00aa14 into scipy:master Mar 24, 2018
@rgommers
Copy link
Member

Merged. Thanks @oleksandr-pavlyk, @pv!

@rgommers rgommers added this to the 1.0.1 milestone Mar 24, 2018
@rgommers
Copy link
Member

backported to 1.0.x in 5d7a2c7

@rgommers rgommers removed the backport-candidate This fix should be ported by a maintainer to previous SciPy versions. label Mar 24, 2018
@ilayn ilayn mentioned this pull request May 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.spatial
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants