Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2018 17:11:52 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r485876 - head/Mk/Uses
Message-ID:  <201811251711.wAPHBqDd061307@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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} '\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811251711.wAPHBqDd061307>