How to add a built-in library in pyhton

2017-03-16 Thread chenchao

Hello, everybody:

   I use python2.7.10 and want to add a c language library in python. 
So how can i built it as a built-in module in python?


--
https://mail.python.org/mailman/listinfo/python-list


how to corss-compile azure-iot-sdk-python

2017-03-19 Thread chenchao

Hi:

   I want to port the 'azure-iot-sdk-python' to my router(arm 
platform). How can i achieve this?


--
https://mail.python.org/mailman/listinfo/python-list


How to port a python package to a embedded system

2017-04-24 Thread chenchao

Hi, everybody:

 I have port python-2.7 to my arm board. But i don't know how to 
port a python package to my embedded system. For example, numpy pakage. 
Therefore, is there anybody know how to do this? Thanks!




--
https://mail.python.org/mailman/listinfo/python-list


Re: How to port a python package to a embedded system

2017-04-24 Thread chenchao

Hi, everybody:

 I have x-compiled the cpython-2.7.10 and ported it on my ARM 
board(it is not the Raspberry Pi and the Beaglebone Black).  But now, I 
have to use numpy python package on my board. So how do i x-compile this 
package? Is there anybody know how to do this? Thanks!



--
https://mail.python.org/mailman/listinfo/python-list


Re: How to port a python package to a embedded system

2017-04-24 Thread chenchao

Hi, everybody:

  I have x-compiled the cpython-2.7.10 and ported it on my ARM
board(it is not the Raspberry Pi and the Beaglebone Black).  But now, I
have to use numpy python package on my board. So how do i x-compile this
package? Is there anybody know how to do this? Thanks!

My embedded system version:
  h

My PC system is ubuntu10.04.
--
https://mail.python.org/mailman/listinfo/python-list


Re: How to port a python package to a embedded system

2017-04-24 Thread chenchao

Hi, all:

My board is the ARM Cortex-A8 processor and support  floating point 
arithmetic.


On 04/24/2017 10:37 PM, Michael Torrie wrote:

On 04/24/2017 08:04 PM, chenchao wrote:

Hi, everybody:

   I have x-compiled the cpython-2.7.10 and ported it on my ARM
board(it is not the Raspberry Pi and the Beaglebone Black).  But now, I
have to use numpy python package on my board. So how do i x-compile this
package? Is there anybody know how to do this? Thanks!

Also what processor are you using?  Many ARM processors lack a floating
point unit, and if yours is one of those, then numpy will be of very
little use on that platform as it requires floating point in the CPU for
speed.





--
https://mail.python.org/mailman/listinfo/python-list


Re: How to port a python package to a embedded system

2017-04-24 Thread chenchao

Hi, all:

I installed it by 'pip install numpy' or 'python setup.cfg 
install'  on my PC, but I do not know how to do this on my arm board. 
Because of my arm board does not have tool of pip. could you please tell 
me any idea? Thanks!



On 04/24/2017 11:39 PM, Michael Torrie wrote:

On 04/24/2017 08:47 PM, chenchao wrote:

I have x-compiled the cpython-2.7.10 and ported it on my ARM
board(it is not the Raspberry Pi and the Beaglebone Black).  But now, I
have to use numpy python package on my board. So how do i x-compile this
package? Is there anybody know how to do this? Thanks!

My embedded system version:
h

My PC system is ubuntu10.04.

I know it would be a bit slow, but it might be easiest to compile and
install numpy on the board itself using the normal tools (the same as
you'd build numpy on a PC).









--
https://mail.python.org/mailman/listinfo/python-list


Re: How to port a python package to a embedded system

2017-04-25 Thread chenchao

Hi, all:

I have installed the PIP on my arm board now.  But the 'numpy' 
package includes some of C codes. This part of the C code must be 
x-compiled and I don't know how to x-compiled this package. So, is there 
a good idea for this issue?



On 04/25/2017 01:15 PM, Michael Torrie wrote:

On 04/25/2017 08:07 AM, MRAB wrote:

On 2017-04-25 07:28, chenchao wrote:

Hi, all:

   I installed it by 'pip install numpy' or 'python setup.cfg
install'  on my PC, but I do not know how to do this on my arm board.
Because of my arm board does not have tool of pip. could you please tell
me any idea? Thanks!


This might help:

How to install pip on Ubuntu
http://www.saltycrane.com/blog/2010/02/how-install-pip-ubuntu/

If chenchao installed Python from a distro package (always recommended)
then that link is exactly what he needs to do.  In fact it would be a
good idea to install numpy from the repositories using apt-get also, if
it's there.

If he installed python from source (sounds like he did, since he
"x-compiled" it), he should already have pip as it's a standard part of
python since 2.7.9.  If pip isn't in the path, he can try:

python -m pip install numpy

and see what happens. Alternatively he can download this:
https://bootstrap.pypa.io/get-pip.py

and then run it with:

python get-pip.py





--
https://mail.python.org/mailman/listinfo/python-list