我的foo_setup.py
样子:
from distutils.core import setup
setup(name='pakcagename',
version='2.0',
description="Blahl blah",
author="kimvais",
url="http://www.google.com/",
requires=['docopt',],
py_modules=['api.fields',
'api.client',
'api._help',
'lib.https'],
scripts=['bin/wrapper-script']
)
python foo_setup.py build
工作正常,但python foo_setup.py sdist
给出:
running sdist
running check
warning: check: missing meta-data: if 'author' supplied, 'author_email' must be supplied too
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list)
error: docs/someothermodule/html/html: No such file or directory
为什么会发生这种情况?
编辑:添加MANIFEST.in
具有以下内容的 a 无济于事:
prune *