[Distutils] setup.py not being included with sdist

Ricardo Niederberger Cabral nieder@mail.ru
Mon May 5 21:59:01 2003


On Mon, 7 Oct 2002 15:34:22 -0300
"Nicodemus" <nicodemus@icablenet.com.br> wrote:

> 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.
[...]
> 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?

try:
$ python setup.py sdist

If even after that setup.py doesn't end up on your source tarball, you may, as a last resort, include setup.py on your MANIFEST.in file.

Best regards,
-- 
rnc <nieder|at|mail.ru>