svn commit: r336671 - head/Mk

William Grzybowski wg at FreeBSD.org
Mon Dec 16 22:01:41 UTC 2013


Author: wg
Date: Mon Dec 16 22:01:40 2013
New Revision: 336671
URL: http://svnweb.freebsd.org/changeset/ports/336671

Log:
  Mk/bsd.python.mk: fix setup call for python 3.x
  
  Reported by:	antoine

Modified:
  head/Mk/bsd.python.mk

Modified: head/Mk/bsd.python.mk
==============================================================================
--- head/Mk/bsd.python.mk	Mon Dec 16 21:45:50 2013	(r336670)
+++ head/Mk/bsd.python.mk	Mon Dec 16 22:01:40 2013	(r336671)
@@ -491,7 +491,7 @@ post-install: stage-python-compileall
 
 # distutils support
 PYSETUP?=				setup.py
-PYDISTUTILS_SETUP?=	-c "import setuptools; __file__='${PYSETUP}'; execfile(__file__)"
+PYDISTUTILS_SETUP?=	-c "import setuptools; __file__='${PYSETUP}'; exec(compile(open(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))"
 PYDISTUTILS_CONFIGUREARGS?=
 PYDISTUTILS_BUILDARGS?=
 PYDISTUTILS_INSTALLARGS?=	-c -O1 --prefix=${PREFIX}


More information about the svn-ports-head mailing list