[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Porting UberWriter to Debian



Hello Debian Python team!

I'm working on packing UberWriter (http://lauchpad.net/uberwriter)
software. Basically everything is working flawlessly, except one file:
locales.db. I'm using plain dh_python2 to build the package and this
is the only file, which isn't provided where it should:

1. It should go to /usr/share/pyshared/uberwriter_lib/thirdparty/pylocales
2. Then, it should be symlinked to /usr/lib/python2.*/dist-packages/etc./etc.

So I decided to make it this way in debian/rules file:

cp ./uberwriter_lib/thirdparty/pylocales/locales.db
/tmp/buildd/uberwriter-12.08.28/debian/uberwriter/usr/share/pyshared/uberwriter_lib/thirdparty/pylocales/locales.db

+ creating postinst file with:

ln -s /usr/share/pyshared/uberwriter_lib/thirdparty/pylocales/locales.db
/usr/lib/python2.6/dist-packages/uberwriter_lib/thirdparty/pylocales/locales.db
ln -s /usr/share/pyshared/uberwriter_lib/thirdparty/pylocales/locales.db
/usr/lib/python2.7/dist-packages/uberwriter_lib/thirdparty/pylocales/locales.db

But I hate that solution and I know that there must be a better way to
do it. I read man dh_python2 thoroughly and I tried to use
pkg.pyinstall, but with no luck. I'm out of ideas, can you please
advise me, how can I make that file packed properly?

Regards,
Hadret

PS You can find original source + package itself and the rest of the
files here: http://deb.ianod.es/debian/incoming


Reply to: