Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id D53AB7A262 for ; Wed, 8 Feb 2017 12:09:31 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 471EC855FC; Wed, 8 Feb 2017 12:09:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id CB0EB855ED for ; Wed, 8 Feb 2017 12:09:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id g1UeQMDySsBo for ; Wed, 8 Feb 2017 12:09:30 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 326FD84CBD for ; Wed, 8 Feb 2017 12:09:30 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 2D71CFBE5; Wed, 8 Feb 2017 12:09:30 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1486555770123930" MIME-Version: 1.0 Date: Wed, 8 Feb 2017 12:09:30 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/lang/python To: pkgsrc-changes@NetBSD.org Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20170208120930.2D71CFBE5@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk This is a multi-part message in MIME format. --_----------=_1486555770123930 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: wiz Date: Wed Feb 8 12:09:30 UTC 2017 Modified Files: pkgsrc/lang/python: egg.mk Log Message: Add new BOOTSTRAP_SETUPTOOLS variable. setuptools is one of the basic methods to install python packages. However, since 34.0 it does not provide its dependencies any longer; so they need to be installed from pkgsrc. For bootstrapping, python itself comes with a copy of (pip and) setuptools. Use this copy to install the necessary packages. They need to be marked by BOOTSTRAP_SETUPTOOLS=yes for this. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 pkgsrc/lang/python/egg.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1486555770123930 Content-Disposition: inline Content-Length: 1155 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/python/egg.mk diff -u pkgsrc/lang/python/egg.mk:1.26 pkgsrc/lang/python/egg.mk:1.27 --- pkgsrc/lang/python/egg.mk:1.26 Sat Feb 4 21:39:05 2017 +++ pkgsrc/lang/python/egg.mk Wed Feb 8 12:09:30 2017 @@ -1,4 +1,4 @@ -# $NetBSD: egg.mk,v 1.26 2017/02/04 21:39:05 wiz Exp $ +# $NetBSD: egg.mk,v 1.27 2017/02/08 12:09:30 wiz Exp $ # # Common logic to handle Python Eggs # @@ -37,7 +37,21 @@ PRINT_PLIST_AWK+= { gsub(/${PYVERSSUFFIX _PYSETUPTOOLSINSTALLARGS= --single-version-externally-managed +# py-setuptools depends on a couple py-* packages that need to be installed +# beforehand. Of course, those can not be built and installed using py-setuptools +# itself; so use the setuptools version included with python itself for installing +# them. +BOOTSTRAP_SETUPTOOLS?= no +.if ${BOOTSTRAP_SETUPTOOLS} == "yes" +BUILD_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat +do-build: ensurepip +.PHONY: ensurepip + +ensurepip: + ${SETENV} ${MAKE_ENV} ${PYTHONBIN} -m ensurepip --user +.else DEPENDS+= ${PYPKGPREFIX}-setuptools>=0.8:../../devel/py-setuptools +.endif INSTALLATION_DIRS+= ${PYSITELIB} --_----------=_1486555770123930--