From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3B256E00566; Wed, 1 Jun 2016 10:26:03 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.214.42 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-it0-f42.google.com (mail-it0-f42.google.com [209.85.214.42]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 16F6FE00474 for ; Wed, 1 Jun 2016 10:25:12 -0700 (PDT) Received: by mail-it0-f42.google.com with SMTP id z123so25518481itg.0 for ; Wed, 01 Jun 2016 10:25:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=eCajSfNMPoNoybRRmIMJQ1zgGIGidlcahrh9r61HpMI=; b=Lw4sQbogRnjsbPajgTnax20dAfefSzv+0296Ce1/niUR3ga3TS4BQn3P6LxEmaetV0 6Lhyf0u91twe41dHr+nLAiubUUK7a6h6c6kESFxx8S3zB0NkgekLJq47HEorrQEKAZUg fNNh482FBHE7G6V5JWuhSOqkGf1aFiUWhj9TpnsdbqIiuh9PahIZ9waf48vi611v9WST X4PTlTZPpW8octyBbjY7DesNWWQNpL1kt40/aNwG9UiPduBBzsSND1XJ2WjmazCbN/CJ 7fz2eQLmQaGtqCeuqtUOzLRHiWcNHAGZBz0ARKvwJQqciGdya/BFUFGP8Np2ScZYHLwL GIBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kergoth-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=eCajSfNMPoNoybRRmIMJQ1zgGIGidlcahrh9r61HpMI=; b=sA+N6ilVc+Yh6sPnGSd9zOZR1p9HQdMlqoPb5C5XKluYaN6H4yx6Gaw292IiiIUuOw SnEN9qeU7HAlaeEpOrAvpwJdttImiNpCc2kjrMDGb/OxfP5m8cjI/cwOYeqbvxwRQI8Y yqe9hj1CwgSRcwwwfVAk8ZF7ifzy4JUt9M2c6UbKU79Eq+I8gTG7cUuBqoLswDGTf9bZ KsYdgG0zXlSxH2cF3td/fYOLEL/pPjxJg755B9a6Kqny0bzx1n/KlHlf9F4fHrz1Jr4L bQ+Q+GIMn4/jAByr7d+/rUo+v17vZv9nPw0HSPFSdeUSYcTPsVtVsktcSyWh60db7RZr u3+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=eCajSfNMPoNoybRRmIMJQ1zgGIGidlcahrh9r61HpMI=; b=GR+X0US74PRjyd/oh0EYE3v0BLEkZ2NnJkC3LmiJ6TaaITA+wqfV0vKlAzcEDE1ALC VHlmTNtRgy630mHX91fSQL5MijxJylJhKnZ9axtJs9yeJQ7qgaWKAZ3+2tdfRDA6VzJ+ BPvV9k9a2a3uYAs6/FDqF2xHC8aWJyXzpnWZj3PR4Es2DoO55YRGcZhQFfzHXQpQHrZj 5vOoy3JU3GuaKWtLHNpc40tsyWH/Fj7vwT9LqnpL7vJJ1nEnndRuJfKmpYcmOYVP/SLV gmuakzRyLjOxpCDgkWhJmA9u0WLwpJ/dZ+AmbARlUvi13kTl8RBP2z/cA24r27MMKlfl Pj0A== X-Gm-Message-State: ALyK8tLBtdalSxALZgNgDhs8Iuoy0AP7T3E/N3m216hbirI4WZlN5fxZDiQaq2xMtr5Kx0iUUUX9CKcJKvqh3w== X-Received: by 10.36.23.206 with SMTP id 197mr6753460ith.15.1464801911780; Wed, 01 Jun 2016 10:25:11 -0700 (PDT) MIME-Version: 1.0 Sender: kergoth@gmail.com Received: by 10.79.100.5 with HTTP; Wed, 1 Jun 2016 10:24:52 -0700 (PDT) In-Reply-To: <20160601092736.GA6648@linux.intel.com> References: <1464691547.19134.127.camel@linuxfoundation.org> <20160601092736.GA6648@linux.intel.com> From: Christopher Larson Date: Wed, 1 Jun 2016 10:24:52 -0700 X-Google-Sender-Auth: wVwvysXzxTb3o_41SHQNKoUtKb4 Message-ID: To: Ed Bartosh Cc: "Avery, Brian" , "toaster@yoctoproject.org" Subject: Re: virtualenv for toaster and python 3 X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2016 17:26:03 -0000 Content-Type: multipart/alternative; boundary=001a11437ffa9e3cfb05343ac5ad --001a11437ffa9e3cfb05343ac5ad Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Jun 1, 2016 at 2:27 AM, Ed Bartosh wrote: > On Tue, May 31, 2016 at 11:48:01AM -0700, Christopher Larson wrote: > > On Tue, May 31, 2016 at 11:47 AM, Brian Avery > wrote: > > > > > One possible solution is to use RP's suggestion to leverage the --use= r > > > argument (which stores packges in > > > $HOME/.local/lib/python3.4/site-packages. > > > > > > >pip3 install --user -r poky/bitbake/toaster-requirements.txt > > > * works except wsgiref is not python3 compatible yet > > > >pip3 list installed --local > > > argparse (1.2.1) > > > beautifulsoup4 (4.4.1) > > > Django (1.8.13) > > > > > > * works to show what is a --user install vs a global site install. > > > > pip3 uninstall/install --user --upgrade/.... works as expected... > > > > > > > Cluttering up my ~/.local with app/project specific requirements is not > > appropriate. As someone who uses --user quite a bit, I'd be quite annoy= ed > > by this. > > So far pip3 --user looks like the only working approach to me. It's not > ideal, but it's not that bad either. It should be used for its direct > purpose > - to install dependencies for 'one user' mode. > > For production Toaster instances I'd suggest to install runtime > dependencies on the host system. > > BTW, Toaster has only one runtime requirement: Django. argparse and > wsgiref is a legacy and beautifulsoup4 is not a runtime dependency. It's > used only > in tests. --user is intended for use by the user, not your scripts. I choose what I put there for good reason. Your use case is what virtual environments are for. If toaster can't handle that, it should be fixed to do so. From the python documentation: This scheme is designed to be the most convenient solution for users that don=E2=80=99t have write permission to the global site-packages directory o= r don=E2=80=99t want to install into it. --=20 Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics --001a11437ffa9e3cfb05343ac5ad Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Wed, Jun 1, 2016 at 2:27 AM, Ed Bartosh <ed.bartosh@linux.inte= l.com> wrote:
On Tue, Ma= y 31, 2016 at 11:48:01AM -0700, Christopher Larson wrote:
> On Tue, May 31, 2016 at 11:47 AM, Brian Avery <avery.brian@gmail.com> wrote:
>
> > One possible solution is to use RP's suggestion to leverage t= he --user
> > argument (which stores packges in
> > $HOME/.local/lib/python3.4/site-packages.
> >
> > >pip3 install --user -r poky/bitbake/toaster-requirements.txt<= br> > > * works except wsgiref is not python3 compatible yet
> > >pip3 list installed --local
> > argparse (1.2.1)
> > beautifulsoup4 (4.4.1)
> > Django (1.8.13)
> >
> > * works to show what is a --user install vs a global site install= .
> > > pip3 uninstall/install --user --upgrade/.... works as expect= ed...
> >
>
> Cluttering up my ~/.local with app/project specific requirements is no= t
> appropriate. As someone who uses --user quite a bit, I'd be quite = annoyed
> by this.

So far pip3 --user looks like the only working approach to me. It= 9;s not
ideal, but it's not that bad either. It should be used for its direct p= urpose
- to install dependencies for 'one user' mode.

For production Toaster instances I'd suggest to install runtime
dependencies on the host system.

BTW, Toaster has only one runtime requirement: Django. argparse and
wsgiref is a legacy and beautifulsoup4 is not a runtime dependency. It'= s used only
in tests.

--user is intended for use by the user, =C2= =A0not your scripts. I choose what I put there for good reason. Your use ca= se is what virtual environments are for. If toaster can't handle that, = it should be fixed to do so. From the python documentation:=C2=A0

This scheme is designed to be the most conve= nient solution for users that don=E2=80=99t have write permission to the gl= obal site-packages directory or don=E2=80=99t want to install into it.

--=C2=A0

Christopher Larson
clarson at kergoth dot com
= Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior= Software Engineer, Mentor Graphics
--001a11437ffa9e3cfb05343ac5ad--