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.
Source distribution file format A . tar. gz source distribution (sdist) contains a single top-level directory called {name}-{version} (e.g. foo-1.0 ), containing the source files of the package. The name and version MUST match the metadata stored in the file.
A MANIFEST.in file consists of commands, one per line, instructing setuptools to add or remove some set of files from the sdist.
The sdist command processes this template and generates a manifest based on its instructions and what it finds in the filesystem. If you prefer to roll your own manifest file, the format is simple: one filename per line, regular files (or symlinks to them) only.
To build a source distribution, use the command line to navigate to the directory containing setup.py, and run the command python setup.py sdist. Run python setup.py bdist or, for Windows, python setup.py bdist_wininst to build a binary distribution.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With