Connecting Tech Pros Worldwide Forums | Help | Site Map

distutils: renaming setup.py ok?

Anastasios Hatzis
Guest
 
Posts: n/a
#1: Feb 7 '07
I want to distribute Python site-packages. Is it okay to use other setup
file names than setup.py, which is mentioned in any place I read in the doc?

E.g., setupMySDK.py, setupMyLib.py

It seems that it works with distutils at least - but probably doing so
has side-effects with other tools which may expect exactly "setup.py" as
file name.


Many thanks,
Anastasios
Benjamin Niemann
Guest
 
Posts: n/a
#2: Feb 7 '07

re: distutils: renaming setup.py ok?


Hello,

Anastasios Hatzis wrote:
Quote:
I want to distribute Python site-packages. Is it okay to use other setup
file names than setup.py, which is mentioned in any place I read in the
doc?
>
E.g., setupMySDK.py, setupMyLib.py
>
It seems that it works with distutils at least - but probably doing so
has side-effects with other tools which may expect exactly "setup.py" as
file name.
I'd say, it's mostly the user who is expecting "setup.py" as the filename.

Perhaps 'setup.py --install-sdk' and 'setup.py --install-lib' would be more
approriate (which can be done with distutils).

HTH

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/
Anastasios Hatzis
Guest
 
Posts: n/a
#3: Feb 7 '07

re: distutils: renaming setup.py ok?


Hello

Benjamin Niemann wrote:
Quote:
Hello,
>
Anastasios Hatzis wrote:
>
Quote:
>I want to distribute Python site-packages. Is it okay to use other setup
>file names than setup.py, which is mentioned in any place I read in the
>doc?
>>
>E.g., setupMySDK.py, setupMyLib.py
>>
>It seems that it works with distutils at least - but probably doing so
>has side-effects with other tools which may expect exactly "setup.py" as
>file name.
>
I'd say, it's mostly the user who is expecting "setup.py" as the filename.
>
Perhaps 'setup.py --install-sdk' and 'setup.py --install-lib' would be more
approriate (which can be done with distutils).
>
Thank you for this hint. I think it will help.

Regards,
Anastasios
Closed Thread