pmneila / PyMaxflow

Python library for creating flow networks and computing the maxflow/mincut (aka graph-cuts for Python)
http://pmneila.github.io/PyMaxflow/
243 stars 59 forks source link

Make setup.py Py3k- and PEP8-compliant. #6

Closed josipd closed 9 years ago

josipd commented 9 years ago

Replaced the call to execfile (does not exist in Py3k) with runpy (introduced in Python 2.5). Also made some stylistic changes so that the file conforms to PEP8.

pmneila commented 9 years ago

I'm happy with updating the code to make it Py3k compliant. However, note that I have never tried to compile PyMaxflow in Py3k and there might be both compile time and runtime errors.