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

Re: howto pack python programs



Bastian Venthur wrote:
> Hi Mentors,
> 
> I'm currently working on a program written in python. The source-tree
> looks like this:
> 
> foo.py
> bar.py
> baz.py
> ex1.py
> ex2.py
> ex3.py
> 
> where ex*.py are executables and the others not. My question is, where
> to put all these files and what should I do with the executables?
> 
> My current idea is:
> - copy all *.py into /usr/share/$PACKAGE/
> - create symlinks like
>   /u/s/p/ex1.py <- /usr/bin/ex1.py
>   /u/s/p/ex2.py <- /usr/bin/ex2.py
>   /u/s/p/ex3.py <- /usr/bin/ex3.py
> 
> Is the location /usr/share/$PACKAGE OK? Should I create the symlinks
> without the py-extension, like:
>   /usr/bin/ex1 -> /u/s/ex1.py
> 
> Next problem, lintian is complaining (W) about non-executable scripts in
> /usr/share/$PACKAGE -- can I ignore this?
> 
> BTW: I already know and use dh_python.
> 
> 
> Kind regards
> 
> Bastian
> 
> 

Take a look at my releaseforge packages (in Etch/Sid).  You might even
be able to rip off the debian/ directory from my package and modify it
to fit your needs.

-Roberto

-- 
Roberto C. Sanchez
http://familiasanchez.net/~roberto

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: