Skip to content

Commit 651f905

Browse files
Merge branch 'release/4.5.2'
2 parents ad3f5ed + 7499a55 commit 651f905

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

docs/release-notes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Release Notes
55
.. toctree::
66
:maxdepth: 2
77

8+
release-notes/version-4.5.2
89
release-notes/version-4.5.1
910
release-notes/version-4.5.0
1011

docs/release-notes/version-4.5.2.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
=============
2+
Version 4.5.2
3+
=============
4+
5+
Version 4.5.2 of mod_wsgi can be obtained from:
6+
7+
https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.5.2
8+
9+
Bugs Fixed
10+
----------
11+
12+
1. When using ``--debug-mode`` with ``mod_wsgi-express`` any additional
13+
directories to search for Python modules, which were supplied by the
14+
``--python-path`` option, were not being added to ``sys.path``.

src/server/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ def find_mimetypes():
282282
283283
WSGIPythonHome '%(python_home)s'
284284
285+
WSGIVerboseDebugging '%(verbose_debugging_flag)s'
286+
285287
<IfDefine !ONE_PROCESS>
286288
WSGIRestrictEmbedded On
287289
WSGISocketPrefix %(server_root)s/wsgi
@@ -345,6 +347,9 @@ def find_mimetypes():
345347
346348
<IfDefine ONE_PROCESS>
347349
WSGIRestrictStdin Off
350+
<IfDefine MOD_WSGI_WITH_PYTHON_PATH>
351+
WSGIPythonPath '%(python_path)s'
352+
</IfDefine>
348353
</IfDefine>
349354
350355
<IfDefine MOD_WSGI_SERVER_METRICS>
@@ -2240,6 +2245,9 @@ def check_percentage(option, opt_str, value, parser):
22402245
help='Flag indicating whether the web server startup log should '
22412246
'be enabled. Defaults to being disabled.'),
22422247

2248+
optparse.make_option('--verbose-debugging', action='store_true',
2249+
dest='verbose_debugging', help=optparse.SUPPRESS_HELP),
2250+
22432251
optparse.make_option('--log-to-terminal', action='store_true',
22442252
default=False, help='Flag indicating whether logs should '
22452253
'be directed back to the terminal. Defaults to being disabled. '
@@ -2876,6 +2884,11 @@ def _cmd_setup_server(command, args, options):
28762884
options['httpd_arguments_list'].append('-E')
28772885
options['httpd_arguments_list'].append(options['startup_log_file'])
28782886

2887+
if options['verbose_debugging']:
2888+
options['verbose_debugging_flag'] = 'On'
2889+
else:
2890+
options['verbose_debugging_flag'] = 'Off'
2891+
28792892
if options['server_name']:
28802893
host = options['server_name']
28812894
else:
@@ -3023,6 +3036,8 @@ def _cmd_setup_server(command, args, options):
30233036
options['httpd_arguments_list'].append('-DMOD_WSGI_WITH_PROXY_HEADERS')
30243037
if options['trusted_proxies']:
30253038
options['httpd_arguments_list'].append('-DMOD_WSGI_WITH_TRUSTED_PROXIES')
3039+
if options['python_path']:
3040+
options['httpd_arguments_list'].append('-DMOD_WSGI_WITH_PYTHON_PATH')
30263041

30273042
if options['with_cgi']:
30283043
if os.path.exists(os.path.join(options['modules_directory'],

src/server/wsgi_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
#define MOD_WSGI_MAJORVERSION_NUMBER 4
2727
#define MOD_WSGI_MINORVERSION_NUMBER 5
28-
#define MOD_WSGI_MICROVERSION_NUMBER 1
29-
#define MOD_WSGI_VERSION_STRING "4.5.1"
28+
#define MOD_WSGI_MICROVERSION_NUMBER 2
29+
#define MOD_WSGI_VERSION_STRING "4.5.2"
3030

3131
/* ------------------------------------------------------------------------- */
3232

0 commit comments

Comments
 (0)