From: richard Date: Thu, 17 Apr 2003 01:14:10 +0000 (+0000) Subject: better demo port selection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f7be748c549a80aef2adb810652a8383c14496c2;p=roundup.git better demo port selection git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1659 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/setup.py b/setup.py index 9c1d9f6..08bfe44 100644 --- a/setup.py +++ b/setup.py @@ -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 @@ def install_demo(): # 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)