I have a python script that I want to package for Debian. I use a debian/install file where I wrote
auto_dice.py /usr/bin/
Linitan then complains about the .py extension (script-with-language-extension).
I then changed it to
auto_dice.py /usr/bin/autodice.py
which causes an error because it interpreted autodice.py
as a directory.
How can I do the rename there? I do not want to rename my python script in the sources.
From Debian bug 245554 already mentioned:
You cannot rename files using
dh_install
(via thedebian/install
). You will need to rename it during thedebian/rules
"build" target before you get to thedh_install
invocation.