deinstall (Was: Re: [Distutils] setup.py clean questions )
Jack Jansen
jack@oratrix.nl
Fri Feb 16 10:31:19 2001
> You can probably do something like this:
>
> data_files = [('mx/Doc', glob.glob('mx/Doc/mx*.html'),
> ('mx/DateTime/Doc', glob.glob('mx*.html')]
>
> to install into several subdirectories with the _standard_
> install_data command.
NONONONONO, please! Not even more unixisms in distutils! The names you use in
your setup script are URLs, not filenames. They look an awful lot like
filenames on Unix, but they _are_ URLs. This is important on the Mac, where
they're actually converted to the Mac filename convention. Using glob.glob on
URLs will prove to be a dissapointing exercise there...
Now if we could get some code in distutils that will make people's setup.py
script remove itself if they put pathnames like "/usr/local/lib" in there...
--
Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm