building a deb package for wxpython application

Hi Guys,
I have recently created a wxPython application. I wanted to upload it
on the web so that everyone could use it. I wanted to create a .deb
package for my wxPython application.

I was wondering if there was a standard procedure to create a deb file
from scratch for a program written in wxPython? I am having problem
creating one.

I created a deb package using the following command:
$ sudo epm -f deb wxhello

where wxhello is a .list file and following are its contents:

%product WxHello
%copyright 2010 by ABC
%description A wxPython test program
%vendor ABC
%version 0.1
%readme README
%license LICENSE
%requires python wxpython
%postinstall xdg-desktop-menu install --mode system --novendor
wxhello.desktop
%postremove xdg-desktop-menu uninstall --mode system wxhello.desktop

Also I have a .desktop file with the following contents:

[Desktop Entry]
Name=WxHello
Comment=A WxPython Test App
Exec=/usr/games/wxhello
Icon=gnome-aisleriot
Terminal=false
Type=Application
Categories=GNOME;GTK;Game;
StartupNotify=true

The problem is I am able to create a deb package using the above
command, but not able to install from the deb file UNLESS I execute
the following command:
sudo dpkg -i path_to_created_deb_file/wxhello.deb

When I try to install from deb file, it says .desktop file not found.

Hi Guys,
I have recently created a wxPython application.

Nice.

I wanted to upload it
on the web so that everyone could use it.

Just pack your scripts/modules in a archive file like .zip and
*everybody* will be happy.

I cann't figure out a simplier way.

jmf

···

On 24 août, 19:16, Rahul Kavi <leorahu...@gmail.com> wrote:

I don't know anything about epm but I would assume that you need to tell it to include the .desktop file in the package and where to install it. Do you? Is the file in the .deb that is produced?

If you want to make the packages the debian way instead of using epm then google turns up some useful pages, such as http://savetheions.com/2010/01/20/packaging-python-applicationsmodules-for-debian/

···

On 8/24/10 10:16 AM, Rahul Kavi wrote:

Hi Guys,
I have recently created a wxPython application. I wanted to upload it
on the web so that everyone could use it. I wanted to create a .deb
package for my wxPython application.

I was wondering if there was a standard procedure to create a deb file
from scratch for a program written in wxPython? I am having problem
creating one.

I created a deb package using the following command:
$ sudo epm -f deb wxhello

where wxhello is a .list file and following are its contents:

The problem is I am able to create a deb package using the above
command, but not able to install from the deb file UNLESS I execute
the following command:
sudo dpkg -i path_to_created_deb_file/wxhello.deb

When I try to install from deb file, it says .desktop file not found.

--
Robin Dunn
Software Craftsman

Robin Dunn wrote:

···

On 8/24/10 10:16 AM, Rahul Kavi wrote:

Hi Guys,
I have recently created a wxPython application. I wanted to upload it
on the web so that everyone could use it. I wanted to create a .deb
package for my wxPython application.

I was wondering if there was a standard procedure to create a deb file
from scratch for a program written in wxPython? I am having problem
creating one.

I created a deb package using the following command:
$ sudo epm -f deb wxhello

where wxhello is a .list file and following are its contents:

The problem is I am able to create a deb package using the above
command, but not able to install from the deb file UNLESS I execute
the following command:
sudo dpkg -i path_to_created_deb_file/wxhello.deb

When I try to install from deb file, it says .desktop file not found.

I don't know anything about epm but I would assume that you need to
tell it to include the .desktop file in the package and where to
install it. Do you? Is the file in the .deb that is produced?

If you want to make the packages the debian way instead of using epm
then google turns up some useful pages, such as
http://savetheions.com/2010/01/20/packaging-python-applicationsmodules-for-debian/

I build my .deb using these files:

http://bazaar.launchpad.net/~sproaty/whyteboard/development/files/head%3A/build/debian/

and simply calling "debuild -S" from that directory builds the package.

Please note that the directory from where I call debuild also has all
the source code inside that directory, as well as a .tar.gz file which
contains the source, too.

--
Steven Sproat, BSc