annotate frontends/wsgi.py @ 6438:b671ed2b49b2

2551143: Problem with installing external trackers ... the change from distutils to setuptools moved the directories for the templates, man pages and docs under the install directory. The install directory is buried in the directory tree under /usr/ib/python/.../roundup...egg/... This patch tries to put them under: the directory specified by --prefix argument the python platform library prefix that prefixes /lib in sysconfig.getpath('platlib') the directory returned by sys.prefix.
author John Rouillard <rouilj@ieee.org>
date Sat, 19 Jun 2021 14:22:36 -0400
parents 7c852cad2ca8
children d32d43e4a5ba
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6390
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
1 # If you installed roundup to the system locations
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
2 # using pip you don't need to change this
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
3 # section. If you installed roundup in a custom
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
4 # location, uncomment these lines and change the
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
5 # path in the append() method to your custom path.
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
6 #import sys
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
7 #sys.path.append('/custom/location/where/roundup/is/installed')
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
8
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
9 # Obtain the WSGI request dispatcher
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
10 from roundup.cgi.wsgi_handler import RequestDispatcher
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
11
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
12 # Set the path to tracker home.
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
13 tracker_home = '/path/to/tracker'
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
14
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
15 # Definition signature for app: app(environ, start_response):
7c852cad2ca8 Add wsgi.py to frontends. Update docs.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
16 app = RequestDispatcher(tracker_home)

Roundup Issue Tracker: http://roundup-tracker.org/