]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
pyhttpd: fix built-in module loading, add venv support
authorJim Jagielski <jim@apache.org>
Wed, 3 Jun 2026 20:27:40 +0000 (20:27 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 3 Jun 2026 20:27:40 +0000 (20:27 +0000)
commit70539d366d7cf1a00247d2f1483d53e4af04a1f1
treea3491b21602c766125491e377e70277a0f7e3e32
parent3116f556b910b9a7842d2f8d31ffa00ca140a8e4
pyhttpd: fix built-in module loading, add venv support

* detect statically compiled modules via `httpd -l` and skip
  LoadModule for them, fixing startup failure when log_config_module
  (or others) are built into the httpd binary

* add pyproject.toml with all required Python dependencies
  (cryptography, python-multipart, websockets, pyopenssl, etc.)

* add runtests-pyhttpd.sh that creates/reuses a .venv via uv or
  plain python3+pip, mirroring pytest_suite/runtests.sh

* prepend .venv/bin to PATH when launching httpd so CGI scripts
  forked by httpd also use the venv's Python and find all packages

* update run-all-tests.sh to delegate pyhttpd runs to the new script

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1934947 13f79535-47bb-0310-9956-ffa450edef68
test/pyhttpd/env.py
test/pyproject.toml [new file with mode: 0644]
test/pytest_suite/t/htdocs/modules/headers/htaccess/.htaccess [deleted file]
test/run-all-tests.sh
test/runtests-pyhttpd.sh [new file with mode: 0755]
test/uv.lock [new file with mode: 0644]