[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rename program during installation
From: |
Andrew In |
Subject: |
Re: Rename program during installation |
Date: |
Sun, 23 Dec 2012 01:48:32 +0100 |
On Saturday, December 22, 2012, Andrew In wrote:
> Hello.
>
> We have an application written in Python that uses automake. We have all
> our source code in a directory called src/programname. We also have a small
> launcher called src/programname.py.in which is transformed into
> src/programname.py during "compilation." With this setup the program is
> installed in lib and the launcher in bin.
>
> The problem is that the launcher is installed as programname.py. We would
> like to install it as just programname.
>
> We can't rename the launcher in the source tree because then the name will
> clash with the name of the Python package. So we're asking if there's a way
> to remove the .py suffix from the launcher during the installation phase?
>
> We are busy reading the documentation, but are somewhat stuck on this one.
> We have looked at a few other Python projects with similar setup and they
> all seam to get around it by using different names for the package and for
> the launcher. We would like to avoid that if possible.
>
> Andrew
>
I just realized that I can make the generated launcher go into a separate
directory before install, so no name clash. That will work with uninstall
too.
Sorry about the first mail being sent twice.
Andrew