Mercurial > p > roundup > code
diff setup.py @ 1587:7c1a9b72f7fb
better demo port selection
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 17 Apr 2003 01:14:10 +0000 |
| parents | 070b56a0b2f6 |
| children | 21312a7564fd |
line wrap: on
line diff
--- a/setup.py Mon Apr 14 06:24:01 2003 +0000 +++ b/setup.py Thu Apr 17 01:14:10 2003 +0000 @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: setup.py,v 1.46 2003-04-10 04:33:02 richard Exp $ +# $Id: setup.py,v 1.47 2003-04-17 01:14:10 richard Exp $ from distutils.core import setup, Extension from distutils.util import get_platform @@ -240,7 +240,8 @@ # figure basic params for server hostname = socket.gethostname() - port = 8080 + # pick a fairly odd, random port + port = 8917 while 1: print 'Trying to set up web server on port %d ...'%port, s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
