[Distutils] Preparation of a pure python package for the Windows installer

Thomas Heller theller at python.net
Wed Oct 29 15:08:22 EST 2003


"Colin J. Williams" <cjw at sympatico.ca> writes:

> I get the impression from the documentation that it should be possible
> to use distutils to distribute a pure Python package in a form
> acceptable by the Windows installer.
>
> Is this correct?

Yes.

> If so, I would appreciate advice on where I've gone astray in the
> script below.
>
> If I enter this line:
>        C:\Program Files\Python23\Lib\site-packages\PyMatrix>python
>        setup.py sdist
> the expected zip file is produced. in
>         C:\Program Files\Python23\Lib\site-packages\PyMatrix\dist
>
> Colin W.
> ------------------------------------------------------------------------
>
> C:\Program Files\Python23\Lib\site-packages\PyMatrix>python setup.py
> bdist_wininst
> running bdist_wininst
> running build
> installing to build\bdist.win32\wininst
> running install_data
> creating build
> creating build\bdist.win32
> creating build\bdist.win32\wininst
> creating build\bdist.win32\wininst\DATA
> creating build\bdist.win32\wininst\DATA\Docs
> error: can't copy 'copy.html': doesn't exist or not a regular file
>
> C:\Program Files\Python23\Lib\site-packages\PyMatrix>

Colin, can you post your setup.py script to see what's wrong?

Thomas




More information about the Distutils-SIG mailing list