Trivial Distutils problem

John J. Lee phrxy at
Wed Dec 13 10:30:51 EST 2000

With the very basic Distutils script below, I get the following error:

$ python 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 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 "
      author = "Michael A. Miller",
      author_email = "miller5 at",
      py_modules = [""]
      # should really be Extension("TableIO._tableio"... ?, but
      # does import _tableio rather than import TableIO._tableio
      #ext_modules = [Extension("_tableio", ["_tableio.c",])]


More information about the Python-list mailing list