CAChemE / pyomo-recipes

Useful conda recipes for Pyomo and dependencies.
MIT License
6 stars 2 forks source link

Patch openopt #2

Closed astrojuanlu closed 8 years ago

astrojuanlu commented 8 years ago

There are some Python 2 failures, it would be nice to have that sorted before it bytes. It might be necessary to use 2to3.

astrojuanlu commented 8 years ago

I don't want to maintain a whole fork with a single codebase, but provide the quickest way to a working system. Hence 2to3 can be up to the task.

Example: https://bitbucket.org/jurko/suds/src/94664dd/setup.py?at=default&fileviewer=file-view-default#setup.py-581

Notice that it's as easy as adding some extra flags in setup.py provided that setuptools is used, see

https://pythonhosted.org/setuptools/python3.html

astrojuanlu commented 8 years ago

The patch is not working as expected, so I will have to do some proper debugging.

astrojuanlu commented 8 years ago

Notice that this was a dirty hack and might give problems on Python Legacy (aka Python 2). But I don't give support for Python Legacy on my spare time anymore :see_no_evil: