From: Jay Soffian jay@soffian.org
Finally, pycheckmate didn't work for me. The first reason had something to do with using a specific Python installation, rather than the environment Python.
Not sure what this is referring to. pycheckmate.py should work fine with /usr/bin/python. At least, it does on the systems I've tested it on.
I fixed that, and then the second problem was that the custom popen relied on poll, which wasn't included in the framework Python build.
Yep, that was an oversight and the latest version I sent you uses select intead.
I am using ActiveState's Python2.4, so I got rid of the customization of the standard library class. The general approach I took probably would let you use some of the 2.3 popens too, and get rid of maintaining that extra bit of code.
2.3.5 doesn't include subprocess otherwise I would have happily used it.
Pycheckmate also wasn't guessing where to find an installed pychecker very well--I guess the intent was that you were supposed to configure the environment variable in TextMate. That seemed unnecessary for the common case of installing via distutils. I fixed that at the start of the attached file--a bit of a hack, maybe, but nicer first-use experience.
I've already fixed this in the latest version I sent you. The contributor must have been looking at the previous version.
looks like it was my fault :)
Please forward this back to the original sender. :-)
j.
Thanks to Domenico and Jay-through-Domenico for your replies. :-)
FWIW (see below)...
On Nov 30, 2005, at 12:24 PM, Domenico Carbotta wrote:
From: Jay Soffian jay@soffian.org
Finally, pycheckmate didn't work for me. The first reason had something to do with using a specific Python installation, rather than the environment Python.
Not sure what this is referring to. pycheckmate.py should work fine with /usr/bin/python. At least, it does on the systems I've tested it on.
.../usr/bin/env python seems like a better choice to me. I have a different Python at /usr/bin/python than my environment Python. TextMate, with its emphasis on 'Mac/UNIX blend' seems like it should use the standard environment tools.
Thanks again to both of you.
Gary