Commit 696c4194 authored by mat's avatar mat
Browse files

Automatically mark ports as DEPRECATED when they use Python 2.

Reviewed by:	antoine
Differential Revision:	https://reviews.freebsd.org/D24732
parent 31a3b19b
......@@ -463,6 +463,11 @@ PYTHON_ABIVER= m
.endif
.endif
.if ${PYTHON_MAJOR_VER} == 2
DEPRECATED?= Uses Python 2.7 which is EOLed upstream
EXPIRATION_DATE?= 2020-12-31
.endif
.if !defined(PYTHONBASE)
PYTHONBASE!= (${PYTHON_CMD} -c 'import sys; print(sys.prefix)' \
2> /dev/null || ${ECHO_CMD} ${LOCALBASE}) | ${TAIL} -1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment