svn commit: r359663 - head/Mk

Marcus von Appen mva at FreeBSD.org
Sat Jun 28 06:59:49 UTC 2014


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}


More information about the svn-ports-head mailing list