Skip to content

Commit 8dfdc04

Browse files
Output WSGIPythonHome in configuration snippet for install-module command of mod_wsgi-express.
1 parent e9850d2 commit 8dfdc04

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/release-notes/version-4.3.2.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,10 @@ Python interpreter doesn't actually log anything and will instead silently
5454
fallback to using any Python installation it finds by seaching for
5555
``python`` on the users ``PATH``. This may not be the Python installation
5656
or virtual environment you intended be used.
57+
58+
2. The Apache configuration snippet generated as an example when running
59+
the ``install-module`` sub command of ``mod_wsgi-express`` to install the
60+
``mod_wsgi.so`` into the Apache installation itself, will now output a
61+
``WSGIPythonHome`` directive for the Python installation or virtual
62+
environment the mod_wsgi module was compiled against so that the correct
63+
Python runtime will be used.

src/server/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,6 +2003,7 @@ def cmd_install_module(params):
20032003
shutil.copyfile(where(), target)
20042004

20052005
print('LoadModule wsgi_module %s' % target)
2006+
print('WSGIPythonHome %s' % os.path.normpath(sys.prefix))
20062007

20072008
def cmd_module_location(params):
20082009
formatter = optparse.IndentedHelpFormatter()

0 commit comments

Comments
 (0)