From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 18E8AE00E28; Wed, 1 Jun 2016 02:27:45 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.88 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6158FE00E0F for ; Wed, 1 Jun 2016 02:27:42 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 01 Jun 2016 02:27:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,400,1459839600"; d="scan'208";a="988719402" Received: from linux.intel.com ([10.23.219.25]) by orsmga002.jf.intel.com with ESMTP; 01 Jun 2016 02:27:41 -0700 Received: from linux.intel.com (vmed.fi.intel.com [10.237.72.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTP id B9F536A4007; Wed, 1 Jun 2016 03:15:08 -0700 (PDT) Date: Wed, 1 Jun 2016 12:27:36 +0300 From: Ed Bartosh To: Christopher Larson Message-ID: <20160601092736.GA6648@linux.intel.com> References: <1464691547.19134.127.camel@linuxfoundation.org> MIME-Version: 1.0 In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.21 (2010-09-15) 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 Reply-To: ed.bartosh@linux.intel.com 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 09:27:45 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --user > > 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 annoyed > 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. -- Regards, Ed