Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Dec 2013 22:01:41 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r336671 - head/Mk
Message-ID:  <201312162201.rBGM1fQU039972@svn.freebsd.org>

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



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