Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
hardenedbsd-ports
Commits
d53c0ba3
Commit
d53c0ba3
authored
Dec 04, 2017
by
mat
Browse files
Add a WARNING for people trying to do clever but bad things with Python
versions. Sponsored by: Absolight
parent
5d1d614e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Mk/Uses/python.mk
View file @
d53c0ba3
...
...
@@ -302,6 +302,10 @@ WARNING+= "PYTHON2_DEFAULT_VERSION is defined, consider using DEFAULT_VERSIONS=p
WARNING
+=
"PYTHON3_DEFAULT_VERSION is defined, consider using DEFAULT_VERSIONS=python3=
${
PYTHON3_DEFAULT_VERSION
:S/^python//
}
instead"
.
endif
.if
${PYTHON2_DEFAULT}
!=
${PYTHON_DEFAULT}
&&
${PYTHON3_DEFAULT}
!=
${PYTHON_DEFAULT}
WARNING
+=
"PYTHON_DEFAULT must be a version present in PYTHON2_DEFAULT or PYTHON3_DEFAULT, if you want more Python flavors, set BUILD_ALL_PYTHON_FLAVORS in your make.conf"
.
endif
.if
exists(${LOCALBASE}/bin/python)
.if
!defined(_PYTHON_DEFAULT_VERSION)
_PYTHON_DEFAULT_VERSION
!=
(
${LOCALBASE}
/bin/python
-c
\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment