Files
macports-ports/lang/python311/files/patch-Lib-cgi.py.diff
Joshua Root 80005357d1 python311: stable release replacing python311-devel
Defaulting python.pep517 to yes for py311 module ports, to prepare for
the future removal of distutils from the stdlib and 'setup.py install'
support from setuptools. Added py311 subports for py-build,
py-installer, and dependencies.
2022-10-26 03:14:08 +11:00

19 lines
809 B
Diff

--- Lib/cgi.py.orig 2006-08-10 19:41:07.000000000 +0200
+++ Lib/cgi.py 2007-08-21 15:36:54.000000000 +0200
@@ -1,13 +1,6 @@
-#! /usr/local/bin/python
+#! @@PREFIX@@/bin/python3.11
-# NOTE: the above "/usr/local/bin/python" is NOT a mistake. It is
-# intentionally NOT "/usr/bin/env python". On many systems
-# (e.g. Solaris), /usr/local/bin is not in $PATH as passed to CGI
-# scripts, and /usr/local/bin is the default directory where Python is
-# installed, so /usr/bin/env would be unable to find python. Granted,
-# binary installations by Linux vendors often install Python in
-# /usr/bin. So let those vendors patch cgi.py to match their choice
-# of installation.
+# NOTE: /usr/local/bin/python patched for MacPorts installation
"""Support module for CGI (Common Gateway Interface) scripts.