[maemo-developers] Problem making .deb package

From: Daniel Martín Yerga dyerga at gmail.com
Date: Thu Dec 6 20:22:18 EET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 6 Dec 2007 19:14:18 +0100
"Andrea Grandi" <a.grandi at gmail.com> wrote:

> > complaining about - either the .pyo files need to be removed from it
> > (pyo shouldn't be in a source archive anyway), or the file just
> > needs to be removed (dpkg-source will create its own in that case).
> 
> I do NOT create them!!! :(
> They're created someway when the library is built. I don't create them
> and they're not in the source tree.
> 
> Really don't know what could be wrong :(
> 

Well, I have been doing the package for flickrapi.
As Tak said, the .pyo files can't be there. As you will see these files
are created every time you run dpkg-buildpackage. 
This is because setup.py has the following line: 
from flickrapi import __version__

.pyo files are created every time that flickrapi is imported. 
The easiest way to solve this is to change that line by simply:
__version__ ='0.15'

That way you won't have problems creating the package.

Cheers.
- -- 
Daniel Martín Yerga
dyerga at gmail.com
http://yerga.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHWD3fcnvB1T3xmfMRAt6WAKCDIJ8rZV+hTZJJRfQpRt3BQQp18ACfVc2X
gsmPAyuf8k8uxLXs6d5VuAg=
=9GtI
-----END PGP SIGNATURE-----
More information about the maemo-developers mailing list