distutils: different names in src and dist/build

Anastasios Hatzis ah at hatzis.de
Thu Feb 8 10:59:44 EST 2007


Anastasios Hatzis wrote:
> Hi,
> 
> is it possible to have different names between the original package name 
> and that which will be installed?
> 
> Example:
> 
> setup.py
> src/
>      sdk/
>          __init__.py
>          startme.py
> 
> This usually creates a distribution file like sdk-0.6.2.tar.gz, which 
> may create
> 
> site-packages/
>      sdk/
> 
> But I would like to have a MySDK-0.6.2.tar.gz and in
> 
> site-packages/
>      MySDK/
> 
> Of course with-out changing the original src package name "sdk" to 
> "MySDK" (which likely would be the easiest way, hum).
> 
> Any suggestion or link how I can achieve this?
> 

Sorry, now I understood that package_dir option can also be used to have 
a installed package layout *totally different* from original source layout.

Regards,
Anastasios



More information about the Python-list mailing list