Date: Sat, 28 Jun 2014 06:59:49 +0000 (UTC) From: Marcus von Appen <mva@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r359663 - head/Mk Message-ID: <201406280659.s5S6xn5W082973@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mva Date: Sat Jun 28 06:59:48 2014 New Revision: 359663 URL: http://svnweb.freebsd.org/changeset/ports/359663 QAT: https://qat.redports.org/buildarchive/r359663/ Log: - Fix PYDISTUTILS_SETUP to use a proper argument list and avoid polluting the PYDISTUTILS_*_ARGS with wrong flags. PR: 191317 Phabric: D270 Exp-run: antoine With hat: python@ Modified: head/Mk/bsd.python.mk Modified: head/Mk/bsd.python.mk ============================================================================== --- head/Mk/bsd.python.mk Sat Jun 28 06:38:02 2014 (r359662) +++ head/Mk/bsd.python.mk Sat Jun 28 06:59:48 2014 (r359663) @@ -548,7 +548,10 @@ post-install: stage-python-compileall # distutils support PYSETUP?= setup.py -PYDISTUTILS_SETUP?= -c "import setuptools; __file__='${PYSETUP}'; exec(compile(open(__file__, 'rb').read().replace(b'\\r\\n', b'\\n'), __file__, 'exec'))" +PYDISTUTILS_SETUP?= -c \ + "import sys; import setuptools; \ + __file__='${PYSETUP}'; sys.argv[0]='${PYSETUP}'; \ + exec(compile(open(__file__, 'rb').read().replace(b'\\r\\n', b'\\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?201406280659.s5S6xn5W082973>