changeset 9:c54e231ccdf7

Don't use Python's setuptools; this removes the superfluous runtime-dependency on Python's setuptools
author Franz Glasner <hg@dom66.de>
date Sun, 24 Sep 2017 01:16:20 +0200
parents 9bc73563b595
children 4dbd28bdcc60
files Makefile
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Sep 16 00:52:44 2017 +0200
+++ b/Makefile	Sun Sep 24 01:16:20 2017 +0200
@@ -18,17 +18,12 @@
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
 USES=		pkgconfig python:build ssl
-USE_PYTHON=	distutils
 USE_RC_SUBR=	uwsginl
 
 CFLAGS+=	-I${OPENSSLINC}
 LDFLAGS+=	${OPENSSL_LDFLAGS}
 MAKE_ENV+=	CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_PROFILE=nolang.ini UWSGI_BIN_NAME=${PORTNAME} UWSGI_EMBED_PLUGINS=cgi,clock_realtime,echo,logpipe UWSGI_PROFILE_OVERRIDE=plugin_dir=${PREFIX}/${PLUGIN_DIR}
 
-PYSETUP=			uwsgiconfig.py
-PYDISTUTILS_BUILD_TARGET=	--build
-PYDISTUTILS_BUILDARGS=		--verbose
-
 USERS=		uwsgi
 GROUPS=		uwsgi
 
@@ -44,6 +39,10 @@
 PCRE_VARS=		BUILDCONF_PCRE=true
 PCRE_LIB_DEPENDS=	libpcre.so:devel/pcre
 
+PYSETUP=			uwsgiconfig.py
+PYDISTUTILS_BUILD_TARGET=	--build
+PYDISTUTILS_BUILDARGS=		--verbose
+
 XML_VARS=		BUILDCONF_XML=libxml2
 XML_LIB_DEPENDS=	libxml2.so:textproc/libxml2
 
@@ -59,6 +58,9 @@
 do-configure:
 	@${DO_NADA}
 
+do-build:
+	@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} uwsgiconfig.py --build --verbose)
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
 	${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}