Oct 19 2008

Creating a .deb package from a python setup.py

Tags:, , , , , , , Ignace Mouzannar (ghantoos) @ 10:09 pm

This article has been updated on July 2nd 2009.

As I worked on packaging a project I am working on (Limited Shell) I found my self reading many tutorials on how to build debian packages. But none where related to distutils setup.py. As a nice setup.py natively knows how to package RPM, I thought about a way to include setup.py in a .deb generation.

Here is a small guide to help generate a debian package from a distutils/setuptools setup.py.

The main steps of this procedure are:
1- make sure that your setup.py is functional
2- generate a GPG key to sign your package and a public key to put on your server or wherever
3- create the files that are useful for the debian packaging:
* debian/changelog
* debian/compat
* debian/control
* debian/copyright
* debian/rules
* debian/watch
4- write the Makefile
5- generate your debian package
6- check your files’ licensing
7- check your new package using lintian
8- Conclusion
9- Links

Continue reading “Creating a .deb package from a python setup.py”


Nov 22 2007

Nokia N70 (S60 series), python and your PC

Tags:, , , , Ignace Mouzannar (ghantoos) @ 4:21 pm

Here is a small briefing of how to connect your Nokia S60 series and your PC through bluetooth:
1- to send a file to your mobile
2- to get your mobile python console on your box!

Continue reading “Nokia N70 (S60 series), python and your PC”


Oct 24 2007

kvm/qemu bridging with dummy network card

Tags:, , , , , , , Ignace Mouzannar (ghantoos) @ 8:34 pm

I wanted to setup some VMs using kvm (i had the same problem using xen). The solution a chose to connect my VMs to the internet was to do it through bridging.
My only problem is that my eth0 (main and only ethernet card is connected straight to the Internet. So bridging loses its meaning because I could not choose new IP addresses for my virtual boxes.

The solution: creating a dummy network interface!

With this scenario, i’ll have all my dumUs bridged to the dummy interface (dummy0) and the bridge (br0) NATed through eth0. I hope I’m clear enough. : )

Here is how my /etc/network/interfaces file looks like:
Continue reading “kvm/qemu bridging with dummy network card”