Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 2498FE00939; Tue, 17 Jan 2017 11:40:00 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.146.13 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 99658E008D3 for ; Tue, 17 Jan 2017 11:39:58 -0800 (PST) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id v0HJdtlT017141 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Tue, 17 Jan 2017 11:39:58 -0800 (PST) Received: from server.local (128.224.21.29) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.294.0; Tue, 17 Jan 2017 11:39:55 -0800 To: Mark Asselstine References: <1484681691-25453-1-git-send-email-mark.asselstine@windriver.com> From: Bruce Ashfield Message-ID: <136d72d5-9bf3-fa82-64cd-9df4dc3d8302@windriver.com> Date: Tue, 17 Jan 2017 14:39:54 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <1484681691-25453-1-git-send-email-mark.asselstine@windriver.com> Cc: meta-virtualization@yoctoproject.org Subject: Re: [m-c-s][PATCH] python: satisfy setup.py 'setup_requires' X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2017 19:40:00 -0000 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit On 2017-01-17 2:34 PM, Mark Asselstine wrote: > Python setuptools will attempt to satisfy the packages defined as > 'setup_requires' in setup.py by first looking for the package > availability locally and ultimately by downloading it from PyPI. This > is actually a huge security hole and packages should move to using pip > instead, but this is another story that the upstream packages have to > address. This also disregards BB_NO_NETWORK and may prove to introduce > host contamination. > > The best approach is to ensure we have the -native version of the > 'setup_requires' packages present such that setup.py will not attempt > to complete the download from PyPI. > > Make 'pbr' -native available and for packages which we have identified > as having 'setup_requires' include 'pbr' add the necessary > python-pbr-native DEPENDS. > > Signed-off-by: Mark Asselstine > --- > When sending out patches today I dropped this one. This needs to > be applied before any of the other patches I sent today. aha. All are merged now. Bruce > > Mark > > > meta-openstack/recipes-devtools/python/python-cliff_1.15.0.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-fixtures_1.3.1.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-glanceclient_git.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-heat_git.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-heatclient_git.bb | 5 +++++ > .../recipes-devtools/python/python-keystoneclient_git.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-lockfile_0.10.2.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-mox3_0.9.0.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-oslo.config_git.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-oslo.context_git.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-oslo.i18n_git.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-oslo.log_git.bb | 5 +++++ > .../recipes-devtools/python/python-oslo.serialization_git.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-oslo.utils_git.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-pbr_1.8.1.bb | 4 ++++ > .../recipes-devtools/python/python-sqlalchemy-migrate_0.9.7.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-stevedore_1.9.0.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-swiftclient_git.bb | 5 +++++ > .../recipes-devtools/python/python-testscenarios_0.5.0.bb | 5 +++++ > meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb | 8 ++++++-- > meta-openstack/recipes-devtools/python/python-wsme_0.7.0.bb | 5 +++++ > 21 files changed, 105 insertions(+), 2 deletions(-) > > diff --git a/meta-openstack/recipes-devtools/python/python-cliff_1.15.0.bb b/meta-openstack/recipes-devtools/python/python-cliff_1.15.0.bb > index c241ab4..2c9341f 100644 > --- a/meta-openstack/recipes-devtools/python/python-cliff_1.15.0.bb > +++ b/meta-openstack/recipes-devtools/python/python-cliff_1.15.0.bb > @@ -19,6 +19,11 @@ DEPENDS += "\ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > RDEPENDS_${PN} += "python-prettytable \ > python-cmd2 \ > python-pbr \ > diff --git a/meta-openstack/recipes-devtools/python/python-fixtures_1.3.1.bb b/meta-openstack/recipes-devtools/python/python-fixtures_1.3.1.bb > index c2b79e4..ac40e9d 100644 > --- a/meta-openstack/recipes-devtools/python/python-fixtures_1.3.1.bb > +++ b/meta-openstack/recipes-devtools/python/python-fixtures_1.3.1.bb > @@ -25,6 +25,11 @@ DEPENDS += " \ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > RDEPENDS_${PN} += "python-testtools \ > python-pbr \ > " > diff --git a/meta-openstack/recipes-devtools/python/python-glanceclient_git.bb b/meta-openstack/recipes-devtools/python/python-glanceclient_git.bb > index f9edf6d..22dc854 100644 > --- a/meta-openstack/recipes-devtools/python/python-glanceclient_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-glanceclient_git.bb > @@ -24,6 +24,11 @@ inherit setuptools monitor rmargparse > > FILES_${PN} += "${datadir}/${SRCNAME}" > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > RDEPENDS_${PN} = "gmp \ > python-warlock \ > python-pyopenssl \ > diff --git a/meta-openstack/recipes-devtools/python/python-heat_git.bb b/meta-openstack/recipes-devtools/python/python-heat_git.bb > index 6da768f..cccaf0a 100644 > --- a/meta-openstack/recipes-devtools/python/python-heat_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-heat_git.bb > @@ -162,6 +162,11 @@ DEPENDS += " \ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > RDEPENDS_${PN} += " \ > python-heatclient \ > python-sqlalchemy \ > diff --git a/meta-openstack/recipes-devtools/python/python-heatclient_git.bb b/meta-openstack/recipes-devtools/python/python-heatclient_git.bb > index 10428c2..26d86be 100644 > --- a/meta-openstack/recipes-devtools/python/python-heatclient_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-heatclient_git.bb > @@ -9,6 +9,11 @@ DEPENDS += " \ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > RDEPENDS_${PN} +="python-cliff \ > python-httplib2 \ > python-iso8601 \ > diff --git a/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb b/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb > index 495f1e3..0b67e40 100644 > --- a/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb > @@ -25,6 +25,11 @@ DEPENDS += " \ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > RDEPENDS_${PN} += " \ > python-iso8601 \ > python-prettytable \ > diff --git a/meta-openstack/recipes-devtools/python/python-lockfile_0.10.2.bb b/meta-openstack/recipes-devtools/python/python-lockfile_0.10.2.bb > index 5ae891b..9ba93df 100644 > --- a/meta-openstack/recipes-devtools/python/python-lockfile_0.10.2.bb > +++ b/meta-openstack/recipes-devtools/python/python-lockfile_0.10.2.bb > @@ -19,6 +19,11 @@ DEPENDS += "\ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > RDEPENDS_${PN} += "\ > python-pbr \ > " > diff --git a/meta-openstack/recipes-devtools/python/python-mox3_0.9.0.bb b/meta-openstack/recipes-devtools/python/python-mox3_0.9.0.bb > index 6d58573..7eb948e 100644 > --- a/meta-openstack/recipes-devtools/python/python-mox3_0.9.0.bb > +++ b/meta-openstack/recipes-devtools/python/python-mox3_0.9.0.bb > @@ -20,6 +20,11 @@ DEPENDS += "\ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > RDEPENDS_${PN} += " \ > python-pbr \ > python-fixtures \ > diff --git a/meta-openstack/recipes-devtools/python/python-oslo.config_git.bb b/meta-openstack/recipes-devtools/python/python-oslo.config_git.bb > index abd3269..9eaec3c 100644 > --- a/meta-openstack/recipes-devtools/python/python-oslo.config_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-oslo.config_git.bb > @@ -19,6 +19,11 @@ DEPENDS += " \ > python-pip \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > RDEPENDS_${PN} += " \ > python-pbr \ > python-netaddr \ > diff --git a/meta-openstack/recipes-devtools/python/python-oslo.context_git.bb b/meta-openstack/recipes-devtools/python/python-oslo.context_git.bb > index 3543cae..28285ad 100644 > --- a/meta-openstack/recipes-devtools/python/python-oslo.context_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-oslo.context_git.bb > @@ -19,6 +19,11 @@ DEPENDS += " \ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > # RDEPENDS_default: > RDEPENDS_${PN} += " \ > bash \ > diff --git a/meta-openstack/recipes-devtools/python/python-oslo.i18n_git.bb b/meta-openstack/recipes-devtools/python/python-oslo.i18n_git.bb > index 84aab41..55d6317 100644 > --- a/meta-openstack/recipes-devtools/python/python-oslo.i18n_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-oslo.i18n_git.bb > @@ -21,6 +21,11 @@ DEPENDS += " \ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > # RDEPENDS_default: > RDEPENDS_${PN} += " \ > python-babel \ > diff --git a/meta-openstack/recipes-devtools/python/python-oslo.log_git.bb b/meta-openstack/recipes-devtools/python/python-oslo.log_git.bb > index d4f7fe0..b290863 100644 > --- a/meta-openstack/recipes-devtools/python/python-oslo.log_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-oslo.log_git.bb > @@ -19,6 +19,11 @@ DEPENDS += " \ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > # RDEPENDS_default: > RDEPENDS_${PN} += " \ > bash \ > diff --git a/meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb b/meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb > index 32b1cc3..1bf11f4 100644 > --- a/meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb > @@ -20,6 +20,11 @@ DEPENDS += " \ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > # RDEPENDS_default: > RDEPENDS_${PN} += " \ > python-pbr \ > diff --git a/meta-openstack/recipes-devtools/python/python-oslo.utils_git.bb b/meta-openstack/recipes-devtools/python/python-oslo.utils_git.bb > index a833f6c..3bacd7c 100644 > --- a/meta-openstack/recipes-devtools/python/python-oslo.utils_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-oslo.utils_git.bb > @@ -20,6 +20,11 @@ DEPENDS += " \ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > # RDEPENDS_default: > RDEPENDS_${PN} += " \ > python-pbr \ > diff --git a/meta-openstack/recipes-devtools/python/python-pbr_1.8.1.bb b/meta-openstack/recipes-devtools/python/python-pbr_1.8.1.bb > index fdf80b3..2018a1b 100644 > --- a/meta-openstack/recipes-devtools/python/python-pbr_1.8.1.bb > +++ b/meta-openstack/recipes-devtools/python/python-pbr_1.8.1.bb > @@ -21,6 +21,10 @@ DEPENDS += " \ > python-pip \ > " > > +DEPENDS_class-native += "" > + > # RDEPENDS_default: > RDEPENDS_${PN} += " \ > " > + > +BBCLASSEXTEND = "native" > diff --git a/meta-openstack/recipes-devtools/python/python-sqlalchemy-migrate_0.9.7.bb b/meta-openstack/recipes-devtools/python/python-sqlalchemy-migrate_0.9.7.bb > index 32ecdb3..5c3636e 100644 > --- a/meta-openstack/recipes-devtools/python/python-sqlalchemy-migrate_0.9.7.bb > +++ b/meta-openstack/recipes-devtools/python/python-sqlalchemy-migrate_0.9.7.bb > @@ -20,6 +20,11 @@ DEPENDS += " \ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > RDEPENDS_${PN} += "python-sqlalchemy \ > python-decorator \ > python-tempita \ > diff --git a/meta-openstack/recipes-devtools/python/python-stevedore_1.9.0.bb b/meta-openstack/recipes-devtools/python/python-stevedore_1.9.0.bb > index bdacb14..0029c2a 100644 > --- a/meta-openstack/recipes-devtools/python/python-stevedore_1.9.0.bb > +++ b/meta-openstack/recipes-devtools/python/python-stevedore_1.9.0.bb > @@ -20,6 +20,11 @@ DEPENDS += " \ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > RDEPENDS_${PN} += " \ > python-pbr \ > python-argparse \ > diff --git a/meta-openstack/recipes-devtools/python/python-swiftclient_git.bb b/meta-openstack/recipes-devtools/python/python-swiftclient_git.bb > index 1c506a8..5f423c4 100644 > --- a/meta-openstack/recipes-devtools/python/python-swiftclient_git.bb > +++ b/meta-openstack/recipes-devtools/python/python-swiftclient_git.bb > @@ -24,6 +24,11 @@ DEPENDS += " \ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > RDEPENDS_${PN} += " \ > python-simplejson \ > python-pbr \ > diff --git a/meta-openstack/recipes-devtools/python/python-testscenarios_0.5.0.bb b/meta-openstack/recipes-devtools/python/python-testscenarios_0.5.0.bb > index 994b6b5..a777b31 100644 > --- a/meta-openstack/recipes-devtools/python/python-testscenarios_0.5.0.bb > +++ b/meta-openstack/recipes-devtools/python/python-testscenarios_0.5.0.bb > @@ -20,6 +20,11 @@ DEPENDS += "\ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > RDEPENDS_${PN} += "\ > python-testtools \ > python-pbr \ > diff --git a/meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb b/meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb > index fe03a5f..3138aae 100644 > --- a/meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb > +++ b/meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb > @@ -16,10 +16,14 @@ SRC_URI[sha256sum] = "8afd6400fb4e75adb0b29bd09695ecb2024cd7befab4677a58c147701a > S = "${WORKDIR}/${SRCNAME}-${PV}" > > inherit setuptools > - > DEPENDS += " \ > python-pbr \ > -" > + " > + > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > > RDEPENDS_${PN} += "\ > python-extras \ > diff --git a/meta-openstack/recipes-devtools/python/python-wsme_0.7.0.bb b/meta-openstack/recipes-devtools/python/python-wsme_0.7.0.bb > index 523c3df..db89474 100644 > --- a/meta-openstack/recipes-devtools/python/python-wsme_0.7.0.bb > +++ b/meta-openstack/recipes-devtools/python/python-wsme_0.7.0.bb > @@ -20,6 +20,11 @@ DEPENDS += " \ > python-pbr \ > " > > +# Satisfy setup.py 'setup_requires' > +DEPENDS += " \ > + python-pbr-native \ > + " > + > RDEPENDS_${PN} += "\ > python-pbr \ > " >