Community
cancel
Showing results for 
Search instead for 
Did you mean: 
nSrob
New Contributor I
1,053 Views

Writing recipe for Python 3.4

Jump to solution

Hi. I am able to build Yocto 1.6.1 with "Intel® Edison Board Support Package User Guide"

I created python_3.4.bb file:

edison-src/build$ vim ../device-software/meta-edison-distro/recipes-support/python3.4/python_3.4.bb

With next:

DESCRIPTION = "Python 3.4"

# LICENSE = "GPLv3+"

LIC_FILES_CHKSUM ="file://LICENSE;md5=dd98d01d471fac8d8dbdd975229dba03"

SRC_URI = "https://www.python.org/ftp/python/3.4.4/Python-3.4.4.tgz https://www.python.org/ftp/python/3.4.4/Python-3.4.4.tgz"

SRC_URI[md5sum] = "e80a0c1c71763ff6b5a81f8cc9bb3d50"

What I need to add to this file if I need to execute next commands to build binaries (It works when I run it on hardware edison):

tar -xf Python-3.4.4.tgz

cd Python-3.4.4/

./configure --enable-shared

make -j3

make install

echo /usr/local/lib/ > /etc/ld.so.conf

I tried to adopt ../poky/meta/recipes-devtools/python/python3_3.3.3.bb recipe to 3.4 but it looks too large with a lot of patches and commands, so I need somthins simplier. Can you help with recipe or point me to some recipe with same simple ./configure and make commands?

Tags (1)
1 Solution
idata
Community Manager
81 Views

Hello nsrb,

 

 

Why do you need to install 3.4? Do you need a plugin/extension/etc. that is not available on 3.3? Which one?

 

 

Regarding the recipe you are currently working on, I'd suggest you to read http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html# new-recipe-writing-a-new-recipe http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html# new-recipe-writing-a-new-recipe, I believe the Writing a New Recipe section will be of much help for you. If you go through the guide you will find the details of how a recipe is constructed, you will find that compilation can be done by two different methods, Autotools or CMake, I believe you have to use CMake for what you are trying to achieve.

 

 

Your work so far looks very good but this guide is very complete and should help you a lot in your project.

 

 

Peter.

View solution in original post

2 Replies
idata
Community Manager
82 Views

Hello nsrb,

 

 

Why do you need to install 3.4? Do you need a plugin/extension/etc. that is not available on 3.3? Which one?

 

 

Regarding the recipe you are currently working on, I'd suggest you to read http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html# new-recipe-writing-a-new-recipe http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html# new-recipe-writing-a-new-recipe, I believe the Writing a New Recipe section will be of much help for you. If you go through the guide you will find the details of how a recipe is constructed, you will find that compilation can be done by two different methods, Autotools or CMake, I believe you have to use CMake for what you are trying to achieve.

 

 

Your work so far looks very good but this guide is very complete and should help you a lot in your project.

 

 

Peter.

View solution in original post

nSrob
New Contributor I
81 Views

Hi, thanks for tips and help, and pointing me to right way.

PS: I need several features from this list https://docs.python.org/3/whatsnew/3.4.html What's New In Python 3.4 — Python 3.5.1 documentation

Reply