[Distutils] NameError: Extension

Thomas Gagne tgagne at ix.netcom.com
Thu Oct 26 00:34:46 EDT 2000


I'm trying to prepare to distribute the python interface with isect so I
downloaded Distutils, installed it, and gave it my first (well, 3rd) try:

$ python setup.py sdist
Traceback (innermost last):
  File "setup.py", line 10, in ?
    extensions = [Extension("isdio", ["isdio.c"])])
NameError: Extension

My setup.py resembles:

from distutils.core import setup

setup (name = "isect",
 version = "1.0",
 description = "Python interface to isect",
 author = "Thomas Gagne",
 author_email = "tgagne at ix.netcom.com",
 url = "http://home.netcom.com/~tgagne",
 py_modules = [ "CStructure", "IsdIO", "echo", "isdclient"],
 extensions = [Extension("isdio", ["isdio.c"])])

I appears I've followed the instructions but I could be very wrong.  Any help
would be appreciated.

--
.tom






More information about the Python-list mailing list