Trivial Distutils problem

Thomas Heller thomas.heller at ion-tof.com
Wed Dec 13 18:11:28 CET 2000


"John J. Lee" <phrxy at csv.warwick.ac.uk> wrote in message news:Pine.SOL.4.30.0012131525400.9329-100000 at mimosa.csv.warwick.ac.uk...
>
> With the very basic Distutils script below, I get the following error:
>
> $ python setup.py build
> running build
> running build_py
> error: package directory 'TableIO' does not exist
>
> Why does it think I want to install a package?  It's just one module to go
> in the root package.
>
> I'm on windows (above output pasted from a cygwin window, but it does the
> same in a DOS shell).
>
>
> #! /usr/bin/env python
>
> # Distutils setup.py for TableIO
>
> from distutils.core import setup, Extension
>
> setup(name = "TableIO",
>       version = "1.4",
>       description = "A module for reading ASCII tables into NumPy arrays (and "
>        "lists).",
>       author = "Michael A. Miller",
>       author_email = "miller5 at uiuc.edu",
>       py_modules = ["TableIO.py"]
                       ^^^^^^^^^^
Distutils wnats to install package TableIO with the module py.
Change this into (do NOT specify the .py extension):
>       py_modules = ["TableIO"]

Thomas





More information about the Python-list mailing list