6

Everytime I use sdist to creat the MANIFEST file with the command:

'python setup.py sdist --manifest-only'

The terminal always outputs this error msg.

error: option --manifest-only not recognized

I don't know why and am looking for help.

higery
  • 63
  • 4

1 Answers1

7

I guess you use

from setuptools import setup

in you setup.py ? Setuptools seems not to support this option. I prefer to stick to the standard Python way and use:

from distutils.core import setup
Sebastian Blask
  • 2,870
  • 1
  • 16
  • 29
  • 1
    Amazing!!! You are right. I'm using setuptools instead of distutils, but setuptools will generate SOURCES.txt instead of traditional MANIFEST file. Many thanks!! – higery Apr 15 '11 at 05:59
  • 1
    Related: setuptools vs distutils http://stackoverflow.com/questions/25337706/setuptools-vs-distutils-why-is-distutils-still-a-thing – guettli Mar 13 '15 at 15:22