Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: pintman on April 08, 2018, 07:27:11 AM

Title: numpy as package
Post by: pintman on April 08, 2018, 07:27:11 AM
Hi!

Yesterday I needed a numpy dependency on a pizero (namely for scroll-phat-hd (https://github.com/pimoroni/scroll-phat-hd)). The process took about 2hrs to compile on picore. Maybe a binary package for numpy would be a good decision.
Title: Re: numpy as package
Post by: Juanito on April 08, 2018, 09:46:48 AM
Now you've compiled numpy, it would be great if you could submit it  ;)
Title: Re: numpy as package
Post by: pintman on April 09, 2018, 08:48:24 AM
I don't know how this can be done. Is there a tutorial or wiki article I can follow?
Title: Re: numpy as package
Post by: Rich on April 09, 2018, 08:50:31 AM
Hi pintman
As a matter of fact, there is:
http://wiki.tinycorelinux.net/wiki:creating_extensions
Title: Re: numpy as package
Post by: pintman on April 09, 2018, 09:08:07 AM
Thanks for the hint. I will have a look into it and check if I can do anything. :)
Title: Re: numpy as package
Post by: pintman on April 09, 2018, 10:28:20 AM
I sent a submission. Hopefully I did all right. :)
Title: Re: numpy as package
Post by: pintman on April 10, 2018, 07:09:49 AM
As I found out, there is a repository of python packages called piwheels (https://www.piwheels.hostedpi.com/index.html) that contains packages compiled for arm. It should be a better solution to use this repository instead.
Title: Re: numpy as package
Post by: pintman on April 10, 2018, 10:07:19 PM
Another update: The numpy version in piwheels has a dependency to fortran a library called libatlas - which is available on the raspberry pi but not in picore. Therefore it cannot be installed via piwheels. However, other binary packages might be usabale.
Title: Re: numpy as package
Post by: Juanito on April 10, 2018, 10:45:34 PM
Even if it takes longer, it will still be better to compile natively
Title: Re: numpy as package
Post by: pintman on April 11, 2018, 10:26:25 AM
piwheels packages will be compiled on a Raspberry Pi 3.
Title: Re: numpy as package
Post by: curaga on April 12, 2018, 01:43:20 AM
Natively meaning the software environment in this context, not hw vs cross.
Title: Re: numpy as package
Post by: gavinmc42 on April 12, 2018, 05:48:07 AM
So can the ArmV8/Aarch64 version of PiCore be compiled on the 32bit version?