[Distutils] Installing scripts to multiple directories
Harald Meland
Harald.Meland@usit.uio.no
Thu Mar 13 17:30:07 2003
[Michael Hudson]
> Harald Meland <Harald.Meland@usit.uio.no> writes:
>
>> Hi,
>>
>> I'm trying to figure out how I can make distutils support installation
>> of scripts to more than one directory, e.g. both <prefix>/bin/ and
>> <prefix>/sbin/.
>>
>> I've found an open bug[1] on this in the Python project on
>> SourceForge, but it's now over a year since the person that bug is
>> assigned to said that he would "look at this".
>
> That would have been me. I've unassigned it from myself, which I
> guess isn't progress... but is realistic, I'm afraid.
OK.
>> I started by looking through the documentation, but could not find any
>> info on how to extend distutils. Hence, I had a look at how distutils
>> is currently implemented, but I'm still not sure how one is meant to
>> *properly* extend the "install*" feature set.
>
> I think that any way that works is more or less the proper way.
Hmmm... I think I might be able to pull off something that will work
with the code as it stands today. However, it will probably be rather
fragile with respect to any changes done to any of the involved
distutils commands (as my current plan is to have my extensions
subclass these).
However, I'm wondering if the functionality I'm after ought to be part
of vanilla distutils. If there's interest in making it an official
part of distutils, it would maybe be better to actually rewrite the
involved parts of distutils instead of trying to subclass them (in
fragile ways).
Any thoughts on what implementation past I should choose?
> The distutils are a thing of wonder, but the code isn't the easiest to
> understand in the world.
True. :-)
--
Harald