svn commit: r485876 - head/Mk/Uses
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Nov 25 17:11:56 UTC 2018
Author: sunpoet
Date: Sun Nov 25 17:11:52 2018
New Revision: 485876
URL: https://svnweb.freebsd.org/changeset/ports/485876
Log:
Update PYMAGICTAG
imp.get_tag() is deprecated since version 3.4.
Use sys.implementation.cache_tag directly starting in Python 3.3.
Reference: https://docs.python.org/3/library/imp.html#imp.get_tag
Modified:
head/Mk/Uses/python.mk
Modified: head/Mk/Uses/python.mk
==============================================================================
--- head/Mk/Uses/python.mk Sun Nov 25 17:11:43 2018 (r485875)
+++ head/Mk/Uses/python.mk Sun Nov 25 17:11:52 2018 (r485876)
@@ -614,7 +614,7 @@ add-plist-pymod:
# When Python version is 3.2+ we rewrite all the filenames
# of TMPPLIST that end with .py[co], so that they conform
# to PEP 3147 (see https://www.python.org/dev/peps/pep-3147/)
-PYMAGICTAG= ${PYTHON_CMD} -c 'import imp; print(imp.get_tag())'
+PYMAGICTAG= ${PYTHON_CMD} -c 'import sys; print(sys.implementation.cache_tag)'
_USES_stage+= 935:add-plist-python
add-plist-python:
@${AWK} '\
More information about the svn-ports-all
mailing list