Reply
Thread Tools
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#41
thanks for the link report

And as TA-t3 said before you can use whatever you want.

Thanks - now it has already surpassed my needs :-)
If you still find it simple to use ... it's perfect

Last edited by Khertan; 2007-10-31 at 08:26.
 
Posts: 5 | Thanked: 4 times | Joined on Feb 2008
#42
I am a developer of PluThon Eclipse plug-in and I am trying to adapt PyPackager in order to generate Debian packages from Windows, Mac and Linux, instead of from maemo. The idea is allow PluThon´s users to generate Debian packages for their projects using an Eclipse Export Wizard, directly from the development environment. In my tests, I have removed the UI code from pypackager script and after some changes (on debfile.py and on the file permissions) I have got Debian packages (for a Hildon Hello World) generated from Windows, working on N800. The changes I have made are described in what follows as well as some questions:
  1. On debfile.py, I have changed the following line, at the method _getDataFiles of the class MaemoPackage
    Code:
    tarOutput.addfile(tarinfo, file(os.path.join(root, f)))
    by this line
    Code:
    tarOutput.addfile(tarinfo, open(os.path.join(root, f),'rb'))
    Only after this change, I have got the package created. Such a change has been motivated by this documentation note for the addFile method of TarFile objects: "On Windows platforms, fileobj should always be opened with mode 'rb' to avoid irritation about the file size.". I have not yet tested on Linux and Mac. Do you know if this problem is present on Linux and Mac?
  2. After the installation of the Debian package on maemo, the application was not started because the hello_world script (which launchs the python hello script file) was with permission 666. After manually changing permission to 775, the application has been launched. How can I set permission to 755? Have I to change the debfile.py or have I to change permissions on Windows?

Thanks in advance for helping.
 

The Following User Says Thank You to glauber For This Useful Post:
Posts: 883 | Thanked: 980 times | Joined on Jul 2007 @ Bern, Switzerland
#43
Originally Posted by glauber View Post
some questions:
  1. After the installation of the Debian package on maemo, the application was not started because the hello_world script (which launchs the python hello script file) was with permission 666. After manually changing permission to 775, the application has been launched. How can I set permission to 755? Have I to change the debfile.py or have I to change permissions on Windows?
AFAIK, the permissions can't be transferred between Windows and Unix.
At least, you would need to add "something" to PluThon that allows the developer to "mark" the files of the package that need executable permissions. Then you could auto-generate a post-install script (as available in PyPackager) that chmod's these files to 755 at the end of the install process.

BTW: Thanks for working on this stuff! I'd very much interested in being able to develop with Python under Windows.
 
Posts: 35 | Thanked: 5 times | Joined on Sep 2007
#44
Can I create a package for installing a python home applet?

I organize all files as they are in their folder structure:
/sourcefiles/usr/lib/hildon-desktop/ <- all .py files here
/sourcefiles/usr/share/applications/hildon-home/ <- .desktop file
/sourcefiles/usr/share/pixmaps/ <- all .png files

Which folder should the deb package go? When I press the build icon(the gears?) nothing happens. I think it did not create a package.

Is it necessary to have some kind of install or removal scripts? What about the icon?
 
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#45
Of course you can use PyPackager to create debian packet for python home applet.

You should select the folder sourcefiles as src folder.

Example of an python home applet packaged with PyPackager : http://khertan.net/downloads/Experim....0.2.armel.deb
 
Posts: 35 | Thanked: 5 times | Joined on Sep 2007
#46
Here is a good HOWTO for Pypackager: http://maemo.org/community/wiki/pack...ingpypackager/
It's great for people as thick as myself, lol

Last edited by icer; 2008-04-02 at 14:10.
 
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#47
Hey !

Thanks for the tutorial !

I ll make a link from the my PyPackager Page directly.
 
Posts: 883 | Thanked: 980 times | Joined on Jul 2007 @ Bern, Switzerland
#48
Originally Posted by Khertan View Post
Thanks for the tutorial !
I'll make a link from the my PyPackager Page directly.
You're welcome - that's the least I could do to give something back!
And I wanted to save others from the countless evenings trying and trying...
Probably should add something about pre/post-install scripts (as used in "moredimmingoptions")

Last edited by twaelti; 2008-04-03 at 11:00.
 
Posts: 35 | Thanked: 5 times | Joined on Sep 2007
#49
Originally Posted by twaelti View Post
You're welcome - that's the least I could do to give something back!
And I wanted to save others from the countless evenings trying and trying...
Probably should add something about pre/post-install scripts (as used in "moredimmingoptions")
Absolutely... thanks twaelti for the excellent instructions. I did not know who did them so I could not give proper credit. Just want to clear that out so people don't think that I did the instructions.

And thanks for Khertan too for the marvelous PyPackager.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#50
I have really found PyPackager to be useful, but I can't seem to get it to install in Diablo. It's OK, I keep a Chinook partition around just for such cases, but I'd love to see it in the Diablo repositories.

Also, Khertan, the "downloads" page on your website should either be disabled or kept in synch with the application pages; it is very confusing to go to "downloads" and have a different version available to download than what is available on the application's page.

Less importantly, you should also update your first post in this thread...
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:47.