Re: [yocto] PyBuild based OpenEmbedded/BitBake recipe

2018-08-28 Thread Burton, Ross
Please remember to CC the list.

On 28 August 2018 at 14:40, bernardo araujo rodrigues
 wrote:
> Indeed I thought about calling "python3 build.py" inside the do_compile
> task.
>
> However my doubt is whether this will actually cross compile and integrate
> properly with the sysroot, or Python will build natively (which would be
> kinda useless).

Exactly.  Good luck, you might need it.  If you're lucky it will just
work, if it respects ${CC} and so on.

Ross
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] PyBuild based OpenEmbedded/BitBake recipe

2018-08-28 Thread Burton, Ross
On 20 August 2018 at 01:33, bernardo araujo rodrigues
 wrote:
> Looking at PhantomJS' github repo (https://github.com/ariya/phantomjs), I
> realized it's a PyBuild based project. However, I couldn't find any BitBake
> class like the setuptools or pypi that would support the build.py script.

That build.py is entirely hand-coded and doesn't use *any* standard
systems, you'll need to call it yourself.  This is trivial: python3
build.py.  Then you get to discover all the corner cases that people
don't think about when they hand-code build scripts...

Ross
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] PyBuild based OpenEmbedded/BitBake recipe

2018-08-20 Thread bernardo araujo rodrigues
Hey everyone.

I need to port PhantomJS  to be cross
compiled inside the OpenEmbedded/BitBake system.

Looking at PhantomJS' github repo (https://github.com/ariya/phantomjs), I
realized it's a PyBuild based project. However, I couldn't find any BitBake
class like the setuptools or pypi that would support the build.py script.

Does anyone know whether porting PyBuild projects to BitBake is even
possible? If not, why?
Regards,
Bernardo Araujo Rodrigues

Electronics Engineer | Engenheiro Eletrônico
Electrical and Computer Engineering Masters Candidate | Mestrando em
Engenharia Elétrica e de Computação.

Mobile | Celular: +1 626 545 6598
Skype: bernardoaraujor44
GitHub: https://github.com/bernardoaraujor
LinkedIn: https://www.linkedin.com/in/bernardoaraujor/
ResearchGate: https://www.researchgate.net/profile/Bernardo_Rodrigues3
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto