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

Do not require cython for normal builds #2036

Merged
merged 3 commits into from
Feb 20, 2017

Conversation

opoplawski
Copy link
Contributor

Description

We can build without cython when using pypi source tarballs. Let people do that.

Checklist

[It's fine to submit PRs which are a work in progress! But before they are merged, all PRs should provide:]

[For detailed information on these and other aspects see scikit-image contribution guidelines]

References

Closes issue #2035

@soupault soupault added the 🔧 type: Maintenance Refactoring and maintenance of internals label Apr 6, 2016
@@ -27,15 +27,19 @@ def cython(pyx_files, working_path=''):
try:
from Cython import __version__
if LooseVersion(__version__) < '0.23':
raise RuntimeError('Cython >= 0.23 needed to build scikit-image')
raise ImportError
Copy link
Member

Choose a reason for hiding this comment

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

Why replace the error with a less informative version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will fall down to the later error if needed.

Copy link
Member

Choose a reason for hiding this comment

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

I agree with @stefanv You can raise two different messages. Needs a little refactoring.

Copy link
Member

Choose a reason for hiding this comment

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

👍 from me to revert this change as well.

@opoplawski
Copy link
Contributor Author

Ping. Is there anything that I need to do here?

@sciunto sciunto added this to the 0.13 milestone Aug 19, 2016
c_files = [f.replace('.pyx.in', '.c').replace('.pyx', '.c') for f in pyx_files]
for cfile in [os.path.join(working_path, f) for f in c_files]:
if not os.path.isfile(cfile):
raise RuntimeError('Cython >= 0.23 is required to build scikit-image from git checkout')
Copy link
Member

Choose a reason for hiding this comment

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

Could you, please, add a global variable CYTHON_VERSION and make use of it? This will be much easier to maintain.

@soupault soupault merged commit db4f67e into scikit-image:master Feb 20, 2017
@soupault
Copy link
Member

Thanks @opoplawski ! Fixed via #2509.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 type: Maintenance Refactoring and maintenance of internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants