|
2010-11-17
, 10:50
|
|
Posts: 560 |
Thanked: 423 times |
Joined on May 2010
@ Switzerland
|
#72
|
|
2010-11-17
, 12:03
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#73
|
Thank you, this makes actually sense
I am now going to install the SDK.
Some question I have:
Is it ok to put the created library *.so into the same folder of my python application (/opt/Appname/) or should it go to /usr/libs/?
And do I also just include it into my tar.gz file I upload to maemo.org for packaging?
The Following User Says Thank You to epage For This Useful Post: | ||
|
2010-11-17
, 13:24
|
|
Posts: 560 |
Thanked: 423 times |
Joined on May 2010
@ Switzerland
|
#74
|
[sbox-FREMANTLE_X86: ~/MyDocs/shedskin-0.6] > fakeroot sh-2.05b# sh-2.05b# cd MyDocs/shedskin-0.6/ sh-2.05b# python setup.py install /scratchbox/tools/lib/python2.3/distutils/dist.py:227: UserWarning: Unknown distribution option: 'package_data' warnings.warn(msg) running install running build running build_py running build_scripts running install_lib creating /scratchbox/tools/lib/python2.3/site-packages/shedskin error: could not create '/scratchbox/tools/lib/python2.3/site-packages/shedskin': Permission denied sh-2.05b# whoami root
|
2010-11-17
, 15:45
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#75
|
Thank you for your quick help.
I installed the SDK and could run it, also Yephyr works.
I made the hello example in http://wiki.maemo.org/Packaging and it works.
But now I do not know how I have to continue to build a c library for python instead a stand alone application.
I tried to install (compile) Shedskin, but it fails as I have not enough rights. even when I do it as fakreroot, it tells me that I have not enough rights:
[CODE]
[sbox-FREMANTLE_X86: ~/MyDocs/shedskin-0.6] > fakeroot
sh-2.05b#
sh-2.05b# cd MyDocs/shedskin-0.6/
sh-2.05b# python setup.py install
/scratchbox/tools/lib/python2.3/distutils/dist.py:227: UserWarning: Unknown distribution option: 'package_data'
warnings.warn(msg)
running install
running build
running build_py
running build_scripts
running install_lib
creating /scratchbox/tools/lib/python2.3/site-packages/shedskin
error: could not create '/scratchbox/tools/lib/python2.3/site-packages/shedskin': Permission denied
sh-2.05b# whoami
root
[/CODE
I guess there is also a (better) way than using shedskin, but I am confused with all the information I find in the internet.
|
2010-11-17
, 21:54
|
|
Posts: 560 |
Thanked: 423 times |
Joined on May 2010
@ Switzerland
|
#76
|
sh-2.05b# shedskin test Traceback (most recent call last): File "/scratchbox/tools/bin/shedskin", line 2, in ? import shedskin File "/scratchbox/tools/lib/python2.3/site-packages/shedskin/__init__.py", line 10, in ? import infer, cpp, annotate File "/scratchbox/tools/lib/python2.3/site-packages/shedskin/infer.py", line 39, in ? from shared import * File "/scratchbox/tools/lib/python2.3/site-packages/shedskin/shared.py", line 524, in ? errormsgs = set() NameError: name 'set' is not defined
|
2010-11-17
, 22:13
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#77
|
Ok, I was now able to install shedskin on my SDK. I had to chmod some directories with my main root account. fakeroot in scratchbox was not able to do it.
Shedskin now got successful installed, but when I want to use it, I get this error:
It seems that python2.3 is used, but it does not support the "set" command.Code:sh-2.05b# shedskin test Traceback (most recent call last): File "/scratchbox/tools/bin/shedskin", line 2, in ? import shedskin File "/scratchbox/tools/lib/python2.3/site-packages/shedskin/__init__.py", line 10, in ? import infer, cpp, annotate File "/scratchbox/tools/lib/python2.3/site-packages/shedskin/infer.py", line 39, in ? from shared import * File "/scratchbox/tools/lib/python2.3/site-packages/shedskin/shared.py", line 524, in ? errormsgs = set() NameError: name 'set' is not defined
How do I upgrade the python version? I am a bit surprised that it is still 2.3.
@epage: Do you know how I could make a python module with c directly? I do not really care with which tools I have to do it, it just has to work.
|
2010-11-18
, 21:20
|
|
Posts: 560 |
Thanked: 423 times |
Joined on May 2010
@ Switzerland
|
#78
|
|
2010-11-18
, 22:30
|
|
Posts: 560 |
Thanked: 423 times |
Joined on May 2010
@ Switzerland
|
#79
|
The Following User Says Thank You to caco3 For This Useful Post: | ||
|
2010-11-20
, 01:02
|
|
Posts: 560 |
Thanked: 423 times |
Joined on May 2010
@ Switzerland
|
#80
|
Tags |
performance, python |
Thread Tools | |
|
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog