[Distutils] setup.py not being included with sdist

Nicodemus nicodemus@icablenet.com.br
Mon May 5 21:12:01 2003


Hail!

I've been using distutils to create distributions of some scripts and
libraries, and everything works as expected, except that the setup.py file
is not included in the source distribution.

For example, if I use the sample program from the python docs:

# setup.py
from distutils.core import setup
setup(name="foo",
      version="1.0",
      py_modules=["foo"])


and run "python setup install", it creates a zipfile named "foo-1.0.zip",
that contains the following files:

foo-1.0/
foo-1.0/foo.py
foo-1.0/PKG-INFO

Shouldn't setup.py be included with the distribution? What am I doing wrong?

Thanks in advance,
Nicodemus.