WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: numpy as package  (Read 3031 times)

Offline pintman

  • Newbie
  • *
  • Posts: 21
numpy as package
« on: April 08, 2018, 07:27:11 AM »
Hi!

Yesterday I needed a numpy dependency on a pizero (namely for scroll-phat-hd). The process took about 2hrs to compile on picore. Maybe a binary package for numpy would be a good decision.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: numpy as package
« Reply #1 on: April 08, 2018, 09:46:48 AM »
Now you've compiled numpy, it would be great if you could submit it  ;)

Offline pintman

  • Newbie
  • *
  • Posts: 21
Re: numpy as package
« Reply #2 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?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: numpy as package
« Reply #3 on: April 09, 2018, 08:50:31 AM »
Hi pintman
As a matter of fact, there is:
http://wiki.tinycorelinux.net/wiki:creating_extensions

Offline pintman

  • Newbie
  • *
  • Posts: 21
Re: numpy as package
« Reply #4 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. :)

Offline pintman

  • Newbie
  • *
  • Posts: 21
Re: numpy as package
« Reply #5 on: April 09, 2018, 10:28:20 AM »
I sent a submission. Hopefully I did all right. :)

Offline pintman

  • Newbie
  • *
  • Posts: 21
Re: numpy as package
« Reply #6 on: April 10, 2018, 07:09:49 AM »
As I found out, there is a repository of python packages called piwheels that contains packages compiled for arm. It should be a better solution to use this repository instead.

Offline pintman

  • Newbie
  • *
  • Posts: 21
Re: numpy as package
« Reply #7 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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: numpy as package
« Reply #8 on: April 10, 2018, 10:45:34 PM »
Even if it takes longer, it will still be better to compile natively

Offline pintman

  • Newbie
  • *
  • Posts: 21
Re: numpy as package
« Reply #9 on: April 11, 2018, 10:26:25 AM »
piwheels packages will be compiled on a Raspberry Pi 3.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: numpy as package
« Reply #10 on: April 12, 2018, 01:43:20 AM »
Natively meaning the software environment in this context, not hw vs cross.
The only barriers that can stop you are the ones you create yourself.

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: numpy as package
« Reply #11 on: April 12, 2018, 05:48:07 AM »
So can the ArmV8/Aarch64 version of PiCore be compiled on the 32bit version?