<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 14, 2016 at 8:54 AM, Burton, Ross <span dir="ltr"><<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="gmail_extra"><span class="gmail-"><div class="gmail_quote">On 12 October 2016 at 18:58, Michael Callahan <span dir="ltr"><<a href="mailto:coder.callahan@gmail.com" target="_blank">coder.callahan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id="gmail-m_-4534664319899436607:lf" class="gmail-m_-4534664319899436607a3s gmail-m_-4534664319899436607aXjCH gmail-m_-4534664319899436607m157c3deda85fa0d9">I just moved my project from Fido to Krogoth and now I have two<br>
pythons (2.7 and 3).  This bumps the size of my image by approximately<br>
25%.  What would be the most reasonable way to get back to just one<br>
python?  Ideally I'd like a magical setting to get rid of python3<br>
because there is no custom code for that one but I suppose with enough<br>
work I could get all of the python2 code working with python3.</div></blockquote></div><br></span>Sadly you can't have a magic option to flip from one to the other as code isn't compatible.  In general master has moved to be 99% Py3 - with smartpm being the only major python2 recipe left - but I thought Krogoth was still Py2 by default so shouldn't be in your image by default.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I suggest you use the usual tools to find out why python2 and python3 are in your images, and see what you can change to have just one.</div></blockquote></div><br>Yeah, as Ross says, the usual tools are best there. There are some things you can do to avoid the python dependency for certain recipes, but it has to be dealt with on a case by case basis, and of course depends on what your image is pulling in.</div><div class="gmail_extra"><br></div><div class="gmail_extra">For example, <a href="https://github.com/openembedded/openembedded-core/compare/master...kergoth:systemtap-python3">https://github.com/openembedded/openembedded-core/compare/master...kergoth:systemtap-python3</a> splits out systemtap-dtrace into a separate recipe which is pulled in via RRECOMMENDS, so I can use BAD_RECOMMENDATIONS to exclude it for images that don’t need it (dtrace is the only thing in systemtap that needs python3).  <a href="https://github.com/openembedded/meta-openembedded/compare/master...kergoth:lirc-python-3">https://github.com/openembedded/meta-openembedded/compare/master...kergoth:lirc-python-3</a> does the same for lirc.<br>-- <br><div class="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>