aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Engberg <diizzy@FreeBSD.org>2024-05-08 06:56:25 +0000
committerMathieu Arnold <mat@FreeBSD.org>2024-05-08 06:56:56 +0000
commit005838951d2789aa028db39aa97619e193ebace6 (patch)
treebca42037e47ccd5e33845b4cb796c2492aeae628
parent3c1326a472ca67ff6159d644589ab5e5bfc1258c (diff)
downloaddoc-005838951d.tar.gz
doc-005838951d.zip
phb: modernize some python bits
-rw-r--r--documentation/content/en/books/porters-handbook/uses/_index.adoc4
-rw-r--r--documentation/content/en/books/porters-handbook/uses/_index.po4
2 files changed, 4 insertions, 4 deletions
diff --git a/documentation/content/en/books/porters-handbook/uses/_index.adoc b/documentation/content/en/books/porters-handbook/uses/_index.adoc
index c571a7d15a..ce23b68af7 100644
--- a/documentation/content/en/books/porters-handbook/uses/_index.adoc
+++ b/documentation/content/en/books/porters-handbook/uses/_index.adoc
@@ -1692,7 +1692,7 @@ If Python is only needed at build time, run time or for the tests, it can be set
If Python is also needed during the patch phase, use `patch`.
See crossref:special[using-python, Using Python] for more information.
-`PYTHON_NO_DEPENDS=yes` can be used when the variables exported by the framework are needed but a dependency on Python is not.
+`USES=python:env` can be used when the variables exported by the framework are needed but a dependency on Python is not.
It can happen when using with <<uses-shebangfix,`USES=shebangfix`>>, and the goal is only to fix the shebangs but not add a dependency on Python.
[[uses-qmail]]
@@ -1929,7 +1929,7 @@ Correct paths for supported interpreters are available in `_interp__CMD`.
[TIP]
====
-When used with <<uses-python,`USES=python`>>, and the aim is only to fix the shebangs but a dependency on Python itself is not wanted, use `PYTHON_NO_DEPENDS=yes`.
+When used with <<uses-python,`USES=python`>>, and the aim is only to fix the shebangs but a dependency on Python itself is not wanted, use `USES=python:env` instead.
====
[[uses-shebangfix-ex-lua]]
diff --git a/documentation/content/en/books/porters-handbook/uses/_index.po b/documentation/content/en/books/porters-handbook/uses/_index.po
index c7618a006d..59f08e0103 100644
--- a/documentation/content/en/books/porters-handbook/uses/_index.po
+++ b/documentation/content/en/books/porters-handbook/uses/_index.po
@@ -4715,7 +4715,7 @@ msgstr ""
#. type: Plain text
#: documentation/content/en/books/porters-handbook/uses/_index.adoc:1695
msgid ""
-"`PYTHON_NO_DEPENDS=yes` can be used when the variables exported by the "
+"`USES=python:env` can be used when the variables exported by the "
"framework are needed but a dependency on Python is not. It can happen when "
"using with <<uses-shebangfix,`USES=shebangfix`>>, and the goal is only to "
"fix the shebangs but not add a dependency on Python."
@@ -5242,7 +5242,7 @@ msgstr ""
msgid ""
"When used with <<uses-python,`USES=python`>>, and the aim is only to fix the "
"shebangs but a dependency on Python itself is not wanted, use "
-"`PYTHON_NO_DEPENDS=yes`."
+"`USES=python:env` instead."
msgstr ""
#. type: Block title