maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Announcement] Python2.7 for Maemo5 (https://talk.maemo.org/showthread.php?t=86900)

AapoRantalainen 2012-09-18 08:15

[Announcement] Python2.7 for Maemo5
 
Now in extras-devel.

Currently Maemo5 has python2.5. There are some interesting python2.7 applications which can't be ported to N900.

Check python2.7-minimal from extras-devel.

*Packages are fully optified.
*Python2.5 and python2.7 can be simultaneously installed

There are no yet modules for python2.7, but in some cases it is possible to use modules from python2.5.

It is not intended that existing and working applications use python2.7, but if new application needs python2.7 it states that explicitly.

--------
First test: AdvancedCaching (this is existing application and works great with python2.5)

Code:

/opt/agtl-maemo/core.py
-#!/usr/bin/python
+#!/usr/bin/python2.7

+import sys
+sys.path.append('/usr/lib/pymodules/python2.5')
+sys.path.append('/usr/lib/pymodules/python2.5/gtk-2.0')
+sys.path.append('/usr/lib/python2.5/site-packages/')
+sys.path.append('/usr/lib/python2.5/lib-dynload/')

-> works.
---------
Some existing applications fail to start with python2.7, and I'm suspecting mismatch of old python2.5 modules, so maybe modules (or some of them) must be recompiled against new python. I'm asking You to test and report your thoughts. What modules cause errors?

----------------


Source:
https://gitorious.org/python27-maemo5/python27-maemo5

[EDIT]
ctypes works with version 2.7.3~rc2-2.1-maemo6 (on extras-devel)
[/EDIT]

ivgalvez 2012-09-18 09:05

Re: [WIP] Python2.7 for Maemo5
 
Is it really optified without the trickery used for Python 2.5?. That would be really a definitive improvement over current installation.

Have you tried to build it with Linaro toolchain and Thumb2?. It could give a boost to Python applications (specially startup times). Then, you could use CSSU's Thumb repository to upload this package (if freemangordon agrees).

AapoRantalainen 2012-09-18 10:29

Re: [WIP] Python2.7 for Maemo5
 
Quote:

Originally Posted by ivgalvez (Post 1268307)
Is it really optified without the trickery used for Python 2.5?

Yes, it "just" installs itself to /opt/python27
("just" = You can count how many modifications and commits it took to achieve this.)

Quote:

Originally Posted by ivgalvez (Post 1268307)
Have you tried to build it with Linaro toolchain and Thumb2?

Not yet. I'm waiting instructions how to participate thumb2. I really respect extras-devel way, i.e. developers send source code and very same builder builds deb-packages.

D@vIcHoJD 2012-09-19 02:48

Re: [WIP] Python2.7 for Maemo5
 
This is an excelent news, because python 2.5 have any problem with any packages for example wifite_r85, pyrit and others. This required python 2.7. Wait that you compiled python2.7 completely and upload to repositories.

Here are some errors that usually come with some applications using python:(with pyrit):D:D

Code:

/home/user # pyrit
Traceback (most recent call last):
  File "/usr/bin/pyrit", line 4, in <module>
          import pyrit_cli
  File "isr/bin/pyrit_cli.py", line 32, in <module>
          import cpyrit.cpyrit
ImportError: No module named cpyrit.cpyrit

Something similar occurs with other packages
I would like to continue testing the improvements that are implemented with python

Regards.

freemangordon 2012-09-19 17:51

Re: [WIP] Python2.7 for Maemo5
 
@AapoRantalainen - check your debian/control file (along with others that may be affected) in the package you sent to autobuilder, it seems line endings are windoze style.

freemangordon 2012-09-19 18:02

Re: [WIP] Python2.7 for Maemo5
 
Quote:

Originally Posted by AapoRantalainen (Post 1268344)
Not yet. I'm waiting instructions how to participate thumb2. I really respect extras-devel way, i.e. developers send source code and very same builder builds deb-packages.

Hmm, what instructions do you need?

StefanL 2012-09-19 19:22

Re: [WIP] Python2.7 for Maemo5
 
Quote:

Originally Posted by D@vIcHoJD (Post 1268803)
This is an excelent news, because python 2.5 have any problem with any packages for example wifite_r85, pyrit and others. This required python 2.7. Wait that you compiled python2.7 completely and upload to repositories.

I did not have many issues with running wifite_r85 on python 2.5, more info check here.

T.Paaatrick 2012-09-19 19:27

Re: [WIP] Python2.7 for Maemo5
 
Thank You.

AapoRantalainen 2012-09-20 04:58

Re: [WIP] Python2.7 for Maemo5
 
Quote:

Originally Posted by freemangordon (Post 1269194)
@AapoRantalainen - check your debian/control file (along with others that may be affected) in the package you sent to autobuilder, it seems line endings are windoze style.

I send debian/control.in and builder generates debian/control.

For testing I sent only debian-directory without source files, and then I get error log as expected. I will continue investigation.

freemangordon 2012-09-20 05:44

Re: [WIP] Python2.7 for Maemo5
 
Quote:

Originally Posted by AapoRantalainen (Post 1269403)
I send debian/control.in and builder generates debian/control.

For testing I sent only debian-directory without source files, and then I get error log as expected. I will continue investigation.

there is debian/control in .tar.gz file you have sent to autobuilder. And this is what autobuilder tries to parse before executing debian/rules.


All times are GMT. The time now is 09:52.

vBulletin® Version 3.8.8