# Add recipe to upgrade python

**URL:** https://forum.legato.io/t/add-recipe-to-upgrade-python/2960
**Category:** Legato Linux distribution (Yocto project)
**Created:** [January 12, 2018, 2:28am UTC](https://forum.legato.io/t/add-recipe-to-upgrade-python/2960 "2018-01-12T02:28:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![GustavoCarlos](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/gustavocarlos/32/295_2.png) [@GustavoCarlos](https://forum.legato.io/u/GustavoCarlos)
#### Post date: [January 12, 2018, 2:28am UTC](https://forum.legato.io/t/add-recipe-to-upgrade-python/2960/1 "2018-01-12T02:28:03Z")

</div>

Hello all,

I’m current working on a Sierra FX30 gateway. I have already configured the environment to build the Linux image using yocto and it is working.

In the image that is being generated, the python version is 2.7.3 and I need at least 2.7.9, do you have any application note on how to put a new recipe to change the python version?

Thanks in advance

Gustavo

---

<div class="post-metadata">

### Author: ![GustavoCarlos](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/gustavocarlos/32/295_2.png) [@GustavoCarlos](https://forum.legato.io/u/GustavoCarlos)
#### Post date: [January 31, 2018, 12:34pm UTC](https://forum.legato.io/t/add-recipe-to-upgrade-python/2960/2 "2018-01-31T12:34:20Z")

</div>

Hello,

I have download the recipes for dev-tools from yocto project, in there the recipes for python are for the version 2.7.14.

I replace it on my poky folder, but I can’t compile the new image.

Is there any guide telling where is needed to change files to compile with a different version of python?

Thanks

Gustavo

---

<div class="post-metadata">

### Author: ![Manukumar](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@Manukumar](https://forum.legato.io/u/Manukumar)
#### Post date: [February 3, 2018, 12:19pm UTC](https://forum.legato.io/t/add-recipe-to-upgrade-python/2960/3 "2018-02-03T12:19:49Z")

</div>

Need to change below files accordingly for upgrading python version with existing in the yocto.Also need to update patch file accordingly.  
default-versions.inc  
python-2.7-manifest.inc  
python-native\_2.7.9.bb  
multilib.patch

Below link will provide additional information on upgrading the versions of python

> **[Python: Upgrade from 2.7.3 to 2.7.9: (cb02ecb5) · Commits · yocto / poky](https://git.congatec.com/yocto/poky/-/commit/cb02ecb507ddad3cb17c78020b42c004aa2903ae)**
>
> \- Based on Paul Eggletons work to partially upgrade to Python 2.7.6 Modified: default-versions.inc: switched to python 2.7.9 generate-manifest-2.7.py: fixed \_sysconfigdata python-2.7-manifest.inc: fixed \_sysconfigdata python.inc: Updated checksums...

---

<div class="post-metadata">

### Author: ![GustavoCarlos](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/gustavocarlos/32/295_2.png) [@GustavoCarlos](https://forum.legato.io/u/GustavoCarlos)
#### Post date: [February 8, 2018, 9:19pm UTC](https://forum.legato.io/t/add-recipe-to-upgrade-python/2960/4 "2018-02-08T21:19:38Z")

</div>

Hello Manukumar,

Thank you so much for the link, following that I could update my python version.

BR

Gustavo
