Search code examples
pythonsdist

sdist error: option --manifest-only not recognized


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.


Solution

  • 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