[Twisted-Python] Twisted Windows Suggestions
Teratorn and I are stepping up to support twisted on windows, and the first thing we need to figure out is a list of fixes and features, by priority. Our top priority is definitely making a windows reactor pass all of the tests, but beyond that there are numerous issues. My first project is rewriting the installer using distutils, but there are numerous other issues to solve, three off the top of my head: 1. Running tac/tap files on windows is unnatural. Sure it's easy enough for a developer but it's not windows system administrator friendly. There are many ways to solve this, and I haven't thought about it long enough, but step 1 would just be associating tac and tap files with running python.exe twistd on them. 2. Installing tac/taps as services, seamlessly, without writing your own service code. 3. Buildbots running on windows 2000, windows 2003, soon Vista as well. I'm not sure how much interest is here, but we'd either need donated hardware or we'd have to run VMWare somewhere. What other big issues stop or hinder your usage of Twisted?
On 3/10/06, Timothy Fitz <TimothyFitz@gmail.com> wrote:
Teratorn and I are stepping up to support twisted on windows, and the first thing we need to figure out is a list of fixes and features, by priority. Our top priority is definitely making a windows reactor pass all of the tests, but beyond that there are numerous issues.
I'm glad of this. At the moment, it doesn't really matter if code breaks tests on the win32 bots. No one cares about the difference between 2-4 intermittently failing tests and 3-5 intermittently failing tests. The only difference that matters is green and red.
My first project is rewriting the installer using distutils, but there are numerous other issues to solve, three off the top of my head:
Your first project after fixing the win32-select tests, right? (All the things you list sound like very good ideas for Windows support) There are a list of issues sorted by priority on the tracker[1]. In fact, there's a page on the wiki dedicated to storing useful Trac queries[2]. I suggest that rather than replying to this email with their issues, people should file bugs on the tracker with 'win32' in the keyword field. You can find some other reports on issues with Twisted by looking at glyph's blog[3]. Thanks very much for doing this -- both you and Eric. Good luck. jml [1] http://twistedmatrix.com/trac/query?status=new&status=assigned&status=reopened&keywords=%7Ewin32&order=priority [2] http://twistedmatrix.com/trac/wiki/UsefulQueries [3] http://glyf.livejournal.com
1. Running tac/tap files on windows is unnatural. Sure it's easy enough for a developer but it's not windows system administrator friendly. There are many ways to solve this, and I haven't thought about it long enough, but step 1 would just be associating tac and tap files with running python.exe twistd on them.
2. Installing tac/taps as services, seamlessly, without writing your own service code.
This is a slightly wider issue than just Windows, but seeing as I develop on it, and it affects me, I'm vaguely lumping it here: twistd needs better logfile handling. It appears to be incredibly difficult to change the standard formatter, and I'm sick and tired fo "Romance Standard Time" appearing all over my logfiles. Also, I see no way to do anything meaningful like running a DailyLogFile instead of just a normal stream. Windows file semantics are not the same as unix ones, and one cannot run logrotate scripts on windows logs if the log files are open by the logging application. Running things in consoles is *not* the Windows way. Hell, the Windows console sucks on so many levels it's unbelievable, so I'm tempted to suggest setting up a default "windows console" for twistd which would open up on the double-click of a .tap, .tac or whatever, that can be minimised to the systray, and would allow you to do things like shut down the programme or "send sighup" in the defautl menus, maybe even do it per service inside the application. It'd be even better if it were controllable from within the .tac file, so the application programmer can change things like the icon and add and remove menu items. I'm happy to aid in the development of such a "console". This is independently of being able to install it as a service, which would, presumably, remove the need for such a GUI. I don't administrate much in the way of windows machines, and certainly dont' run much int he way of windows services, so I don't know what the "windows way" is, as opposed to "my way" of doing services.
On 3/9/06, Timothy Fitz <TimothyFitz@gmail.com> wrote:
Teratorn and I are stepping up to support twisted on windows
Thank you! 2. Installing tac/taps as services, seamlessly, without writing your
own service code.
More seamlessly than via Cory Dodt's sandbox ntsvc mechanism ( http://twistedmatrix.com/trac/browser/sandbox/moonfallen/README-ntsvc.txt?re...), which I'm happily using in many places? A little work to setup, but it doesn't involve writing any service code directly...
participants (4)
-
Jonathan Lange -
Moof -
Norm Petterson -
Timothy Fitz