[Distutils] Distutils filenames
Rene Liebscher
R.Liebscher@gmx.de
Wed Nov 15 05:50:01 2000
Jack Jansen wrote:
>
> Another problem I ran into with distutils is that while most pathnames follow
> the local machine convention so do not. More precisely, the source files and
> such that the package developer put in their setup.py file are passed along
> unmodified.
>
> For now I've put in a heuristic that will convert pathnames from unix-format
> to mac-format if they contain a / and do not contain a :, but in the long run
> it's probably better if it's specified in what form pathnames in setup.py
> should be, and have the core of distutils convert them.
There is already a function for this purpose.
util.py, line 63 convert_path()
You should check if it does the same what your function is supposed to
do.
And it might be a good idea to use it in the Extension class
constructor to convert all paths in the format you need.
(This would also mean, all paths have to specified as unix paths.)
kind regards
Rene Liebscher