Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sdist error: option --manifest-only not recognized

Tags:

python

sdist

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.

like image 768
higery Avatar asked Apr 13 '11 15:04

higery


People also ask

What is Sdist in python?

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.

What is manifest in file python?

A MANIFEST.in file consists of commands, one per line, instructing setuptools to add or remove some set of files from the sdist.

How does Sdist work?

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.

What is the command used for building a source distribution python setup py?

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.


1 Answers

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
like image 88
Sebastian Blask Avatar answered Oct 31 '22 13:10

Sebastian Blask