Take the 2-minute tour ×  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.  share|improve this question  2 Answers 2  up vote
11 down vote accepted  You cannot rename files using dh_install
(via the debian/install). You will need to rename it during the
debian/rules "build" target before you get to the dh_install
invocation.  share|improve this answer so it will be build: \\
mv auto_dice.py autodice? –  queueoverflow Apr 5 '11 at 21:38
likely the mv would happen in the target directory rather than
the build directory, but yeah, you'd have to add the move before
calling dh_install. –  Kees Cook Apr 7 '11 at 1:39 For a bug
report requesting