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
Cython Version #54
Comments
Sure, I'll add a note.
Of course, I would also like to be accommodating to users and contributors who would like to cythonize the source files directly. What version of Cython are you using? Is it difficult for you to upgrade Cython? Thanks for reporting this; I'll see what I can do. |
Thanks for the quick response. Also, thanks for being accommodating. Understood, I initially tried to build from source (i.e. the repo), but quickly realized that wasn't an option and noted that you were probably doing this on behalf of users. All of this seems perfectly reasonable. Admittedly, I had no trouble building the C code (from PyPI). I'm using a pretty ancient version. I don't know if it is worth it to make sure it is compatible with my version, but as you did ask it is 0.17.1. Unfortunately, yes, it is difficult to upgrade as we build a large number of dependencies from source. Again, I don't think it is worth trying to ensure compatibility on such an old version, but I do appreciate you asking. Just out of curiosity, what command line call are you using to build just the Cython portion or are you just building everything and removing the libraries and such afterwards? Thanks again. |
I can make a branch that runs a test matrix of different Cython versions, and then try to update the code so it is compatible with older versions. We don't want this in the main branch, because it will slow down testing on TravisCI significantly. To build, I use the makefile, so I just type $(PYTHON) setup.py build_ext --inplace --cython When doing a release, I test the C files created by the Cython I am using on this branch: Would you prefer that releases of |
That's a thought. I don't know how many runs you wanted to do, but it seems one should have a fixed version and then the current one.
Understandably, building Cython from source is a bit time consuming. Maybe it would be worth considering wheels, particularly, for any fixed versions.
Cool, thanks for the info.
That sounds great. How often is this kept up to date? Also, are you planning on having or moving such a branch to pytoolz/cytoolz?
That's probably not a bad idea the These are all just musings on my part. If they are interesting or useful great; otherwise, feel free to disregard them. After you mentioned your C branch, I am left wondering how easy would it be to have tagged releases on GitHub based off of commits in this branch? Combining something like this with Travis' ability to deploy might be nice for you and end users like myself. ( http://docs.travis-ci.com/user/deployment/pypi/ ) ( http://docs.travis-ci.com/user/deployment/custom/ ) ( http://docs.travis-ci.com/user/build-configuration/#Using-regular-expressions ) I think with a little hacking it should be possible to get the C code built and committed via Travis to a blacklisted deploy branch or similar. Admittedly, I haven't dug into this too much, but this project seems to have done something similar with R. ( https://github.com/luckyrandom/r-deploy-git ) |
fyi, looks like https://travis-ci.org/eriknw/cytoolz/builds/51930777 which tests this branch https://github.com/eriknw/cytoolz/tree/test_cython_versions You're right: I should tag releases (I did this for |
Nice! I'll try it out in the morning and let you know how it goes. I don't expect any surprises. Do you think this change can be kept? I kind of wonder what happened in the really old versions of Cython. It seems like some unsupported features, but I don't know if it is worth exploring. Cython 0.15.* is from fall of 2011. Well, if you did go that route, I would definitely appreciate it. |
Closing. I just pushed absolute imports to master, and I updated "requirements_devel.txt" so it's clear that Cython version 0.17 or later is required. Thanks for the discussion, @jakirkham! |
Sounds good. By the way, building from master worked fine for me. Likewise. Thanks for the changes, as well. |
I tried building with Cython and got the exception below. I'm pretty sure this is due to using a very old version of Cython as it seems to be something they fixed ( http://trac.cython.org/ticket/542 ).
It would be nice to know what version Cython cytoolz aims to be compatible with. Could we please get a note in the Readme? If I'm just missing it, I would appreciate a helpful pointer. Thanks in advance.
The text was updated successfully, but these errors were encountered: