All of lore.kernel.org
 help / color / mirror / Atom feed
* Python3 and Numpy
@ 2015-11-27 15:11 Benoit Rapidel
  2015-11-27 15:19 ` Alexander Kanavin
  0 siblings, 1 reply; 7+ messages in thread
From: Benoit Rapidel @ 2015-11-27 15:11 UTC (permalink / raw)
  To: yocto

Hi,

I want to install NumPy with Python3 supporton a Beaglebone Black. Unfortunately, I 
couldn't find any information or a recipe. Anyone has ever tried, success, failed ?

Regards,

-- 
Benoit Rapidel

Co-founder & CTO at ExMachina


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Python3 and Numpy
  2015-11-27 15:11 Python3 and Numpy Benoit Rapidel
@ 2015-11-27 15:19 ` Alexander Kanavin
  0 siblings, 0 replies; 7+ messages in thread
From: Alexander Kanavin @ 2015-11-27 15:19 UTC (permalink / raw)
  To: yocto

On 11/27/2015 05:11 PM, Benoit Rapidel wrote:

> I want to install NumPy with Python3 supporton a Beaglebone Black.
> Unfortunately, I couldn't find any information or a recipe. Anyone has
> ever tried, success, failed ?

There is a recipe for numpy in oe-core, but it's not particularly up to 
date, and doesn't have python3 support. You are welcome to update it and 
send patches :)

Alex



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Python3 and Numpy
       [not found] <5658862A.2040706@exmachina.fr>
@ 2015-11-27 16:39 ` Benoit Rapidel
  2015-11-27 16:40   ` Alexander Kanavin
  0 siblings, 1 reply; 7+ messages in thread
From: Benoit Rapidel @ 2015-11-27 16:39 UTC (permalink / raw)
  To: yocto

I found one in meta. How do I update it ? I'm using poky jethro.
Should a create a new one named python3-numpy or the same recipe should handle both
python versions ?

B

@Alex, sorry for that, reposting in the mailing list.

Le 27/11/2015 16:19, Alexander Kanavin a écrit :
> On 11/27/2015 05:11 PM, Benoit Rapidel wrote:
>
>> I want to install NumPy with Python3 supporton a Beaglebone Black.
>> Unfortunately, I couldn't find any information or a recipe. Anyone has
>> ever tried, success, failed ?
>
> There is a recipe for numpy in oe-core, but it's not particularly up to date, and
> doesn't have python3 support. You are welcome to update it and send patches :)
>
> Alex
>

-- 
Benoit Rapidel

Co-founder & CTO at ExMachina




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Python3 and Numpy
  2015-11-27 16:39 ` Benoit Rapidel
@ 2015-11-27 16:40   ` Alexander Kanavin
  2015-11-27 18:36     ` Benoit Rapidel
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Kanavin @ 2015-11-27 16:40 UTC (permalink / raw)
  To: yocto

On 11/27/2015 06:39 PM, Benoit Rapidel wrote:
> I found one in meta. How do I update it ? I'm using poky jethro.
> Should a create a new one named python3-numpy or the same recipe should
> handle both
> python versions ?

 From what I can see, the standard approach is to create a separate 
recipe for python3.

If you want to tweak, it's best to base your work on poky master.

Alex



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Python3 and Numpy
  2015-11-27 16:40   ` Alexander Kanavin
@ 2015-11-27 18:36     ` Benoit Rapidel
  2015-11-29 23:18       ` Benoit Rapidel
  0 siblings, 1 reply; 7+ messages in thread
From: Benoit Rapidel @ 2015-11-27 18:36 UTC (permalink / raw)
  To: yocto

Ok, thanks

Numpy start to except ld can't find npymath and npysort. I checked with devshell, 
there is libnpymath.a and libnpysort.a within build/temp.linux-x86_64-3.4, which is 
used by ld to find libs. Do you have any clues ?

I'm trying to compile numpy 1.9.2 with python3.

Thanks in advance

B

Le 27/11/2015 17:40, Alexander Kanavin a écrit :
> On 11/27/2015 06:39 PM, Benoit Rapidel wrote:
>> I found one in meta. How do I update it ? I'm using poky jethro.
>> Should a create a new one named python3-numpy or the same recipe should
>> handle both
>> python versions ?
>
>  From what I can see, the standard approach is to create a separate recipe for python3.
>
> If you want to tweak, it's best to base your work on poky master.
>
> Alex
>

-- 
Benoit Rapidel

Co-founder & CTO at ExMachina


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Python3 and Numpy
  2015-11-27 18:36     ` Benoit Rapidel
@ 2015-11-29 23:18       ` Benoit Rapidel
  2015-12-18 23:24         ` Benoit Rapidel
  0 siblings, 1 reply; 7+ messages in thread
From: Benoit Rapidel @ 2015-11-29 23:18 UTC (permalink / raw)
  To: yocto

Here the full log:

http://sprunge.us/SYCO?log

Le 27/11/2015 19:36, Benoit Rapidel a écrit :
> Ok, thanks
>
> Numpy start to except ld can't find npymath and npysort. I checked with devshell,
> there is libnpymath.a and libnpysort.a within build/temp.linux-x86_64-3.4, which is
> used by ld to find libs. Do you have any clues ?
>
> I'm trying to compile numpy 1.9.2 with python3.
>
> Thanks in advance
>
> B
>
> Le 27/11/2015 17:40, Alexander Kanavin a écrit :
>> On 11/27/2015 06:39 PM, Benoit Rapidel wrote:
>>> I found one in meta. How do I update it ? I'm using poky jethro.
>>> Should a create a new one named python3-numpy or the same recipe should
>>> handle both
>>> python versions ?
>>
>>  From what I can see, the standard approach is to create a separate recipe for
>> python3.
>>
>> If you want to tweak, it's best to base your work on poky master.
>>
>> Alex
>>
>

-- 
Benoit Rapidel
Co-founder & CTO
ExMachina

benoit.rapidel@exmachina.fr
+33 (0)6 89 63 83 68


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Python3 and Numpy
  2015-11-29 23:18       ` Benoit Rapidel
@ 2015-12-18 23:24         ` Benoit Rapidel
  0 siblings, 0 replies; 7+ messages in thread
From: Benoit Rapidel @ 2015-12-18 23:24 UTC (permalink / raw)
  To: yocto

Hello,

I'm still trying to get python3-numpy to compile. I have been inspecting log file for 
quite a while. One lead I got is that gcc have -L=/usr/lib in its arguments.
I diff log.do_compile from python3-numpy and log.do_compile from python-numpy.
I see no reference to /usr/lib in python-numpy log. How can I remove this -L=/usr/lib 
from arguments to try compiling without searching in this dir ?

Here is the recipe failing:

https://github.com/exmachina-dev/meta-exm-core/blob/master/recipes-python/python3-numpy/python3-numpy_1.10.1.bb

It's mainly taken from python-numpy_1.10.1.bb found in openembedded-core/meta. I 
renamed all refs of python to point to python3 and I fixed a bug. Config files 
couldn't be copied due to multiple paths after `grep src` (py and py3).

And here the full log from log.do_compile (-L=/usr/lib is found at L2143, L2193, 
L4335 and L4385):

http://sprunge.us/INYI?log

I also found that the setup.py tried to build Fortran code with /usr/bin/gfortran 
(from host). As python-numpy did not find gfortran, I temporarily uninstalled 
gfortran from host (L97 now don't find gfortran).

I'm really stuck with this recipe. Any help from you guys is much appreciated.

Many thanks,
B

Le 30/11/2015 00:18, Benoit Rapidel a écrit :
> Here the full log:
>
> http://sprunge.us/SYCO?log
>
> Le 27/11/2015 19:36, Benoit Rapidel a écrit :
>> Ok, thanks
>>
>> Numpy start to except ld can't find npymath and npysort. I checked with devshell,
>> there is libnpymath.a and libnpysort.a within build/temp.linux-x86_64-3.4, which is
>> used by ld to find libs. Do you have any clues ?
>>
>> I'm trying to compile numpy 1.9.2 with python3.
>>
>> Thanks in advance
>>
>> B
>>
>> Le 27/11/2015 17:40, Alexander Kanavin a écrit :
>>> On 11/27/2015 06:39 PM, Benoit Rapidel wrote:
>>>> I found one in meta. How do I update it ? I'm using poky jethro.
>>>> Should a create a new one named python3-numpy or the same recipe should
>>>> handle both
>>>> python versions ?
>>>
>>>  From what I can see, the standard approach is to create a separate recipe for
>>> python3.
>>>
>>> If you want to tweak, it's best to base your work on poky master.
>>>
>>> Alex
>>>
>>
>

-- 
Benoit Rapidel
Co-founder & CTO
ExMachina

benoit.rapidel@exmachina.fr
+33 (0)6 89 63 83 68


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-12-18 23:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-27 15:11 Python3 and Numpy Benoit Rapidel
2015-11-27 15:19 ` Alexander Kanavin
     [not found] <5658862A.2040706@exmachina.fr>
2015-11-27 16:39 ` Benoit Rapidel
2015-11-27 16:40   ` Alexander Kanavin
2015-11-27 18:36     ` Benoit Rapidel
2015-11-29 23:18       ` Benoit Rapidel
2015-12-18 23:24         ` Benoit Rapidel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.