-
Notifications
You must be signed in to change notification settings - Fork 69
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
Python 3 support #67
Python 3 support #67
Conversation
Python 3 does not differentiate betten int and long so the PyInt_ functions must be replaced with PyLong_. Macros from cx_Oracle project.
The izip function fron itertools was removed from Python 3, use of zip is recommended.
TypeError and NotImplementedError are build ins
long was removed in Python 3, use int in its place.
The build in reduce function was removed in Python 3 and must be imported from functools.
Due to the different methods that Python 2 and 3 represent strings it is necessary to encode the filename passed to the readMps function which can then be converted into a char* pointer for use in C. Since strings do not share a type in Python 2 and 3 the filename argument of the readMps function must not be typed.
This may break the bdist_mpkg and bdist_wininst commands
I posted a beta version with Python 3 support to Pypi:
There is a binary wheel for Windows, but you still need to build Cbc before installing on Linux and OS X. |
I seem to have figured out the bug that prevented this from building with Cython 0.29. I re-generated the files once again and pushed a binary wheel up for Python 3.7 on Windows. |
…e csr_matrixPlus type introduced in CyLP
Thanks for the PR. In testing, I found a bug that arises with recent versions of SciPy. I fixed that and am now merging to master. There are still some outstanding bugs that should be fixed, but these can be fixed in master and don't affect use in most cases. |
This is an update of #28. I re-generated the Cython files with Cython 0.23.3 (which seems to be the last version used by @jjhelmus). I can build and install. I get an error Ican't interpret with the most recent version of Cython (0.29.6). Unfortunately, I'm not an expert on Python 3 or Cython. I'll continue to debug, but if anyone wants to grab this and try their luck, I thought I would throw it out there. I'm also getting some deprecation warnings and a few other strange errors when testing, although thing seems to be working for the most part.