Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153243595
D28459.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D28459.diff
View Options
Index: head/Mk/Uses/python.mk
===================================================================
--- head/Mk/Uses/python.mk
+++ head/Mk/Uses/python.mk
@@ -22,12 +22,12 @@
# USES=python:3.6+ # Supports Python 3.6 or later
# USES=python:3.6-3.9 # Supports Python 3.6 to 3.9
# USES=python:-3.8 # Supports Python up to 3.8
-# USES=python # Supports any/all Python versions
+# USES=python # Supports 3.6+
#
# NOTE: <version-spec> should be as specific as possible, matching the versions
# upstream declares support for, without being incorrect. In particular,
-# USES=python *without* a <version-spec> means any and all past or future
-# versions, including unreleased versions, which is probably incorrect.
+# USES=python *without* a <version-spec> means 3.6+,
+# including unreleased versions, which is probably incorrect.
#
# Not specifying a <version-spec> should only be used when a more specific
# <version-spec> cannot be specified due to syntax limitations, for
@@ -333,6 +333,10 @@
.endif # ${_PYTHON_ARGS} == 2.7
_PYTHON_VERSION:= ${PYTHON_DEFAULT}
+
+.if empty(_PYTHON_ARGS)
+_PYTHON_ARGS= 3.6+
+.endif
# Validate Python version whether it meets the version restriction.
_PYTHON_VERSION_CHECK:= ${_PYTHON_ARGS:C/^([1-9]\.[0-9])$/\1-\1/}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 12:48 AM (5 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31875752
Default Alt Text
D28459.diff (1 KB)
Attached To
Mode
D28459: Make USES=python without argument mean 3.6+.
Attached
Detach File
Event Timeline
Log In to Comment