python-构建似乎没有正确执行setup.py
作者:互联网
buildout.cfg
[buildout]
parts = icom
develop = .
unzip = true
include-site-packages = false
eggs =
sqlalchemy
flask
scss
[icom]
recipe = zc.recipe.egg
eggs = ${buildout:eggs}
interpreter = python
scripts =
create_db
scss
脚本中有一个create_db.
setup.py
from setuptools import setup, find_packages
setup(
name = "icom",
version = "1.0",
url = 'http://domain.com',
license = 'BSD',
description = "",
author = 'lzyy',
author_email = 'someone@some.com',
packages = find_packages('src'),
package_dir = {'': 'src'},
install_requires = ['setuptools', 'flask', 'sqlalchemy', 'scss', 'flask-actions'],
zip_safe = False,
entry_points = '''
[console_scripts]
create_db = models.tables:create_db
''',
)
注意flask-actions不在buildout.cfg中
当我运行bin / buildout -vv时收到这些消息
Installing 'zc.buildout', 'setuptools'.
We have the best distribution that satisfies 'zc.buildout'.
Picked: zc.buildout = 1.5.2
We have a develop egg: setuptools 0.6c12dev-r85381
Develop: '/Users/healdream/Dropbox/project/icom/.'
in: '/Users/healdream/Dropbox/project/icom/.'
/var/folders/70/d_0n450n7_17fj_httj_sbf00000gn/T/tmpfWBBK3 develop -mxN -d /Users/healdream/Dropbox/project/icom/develop-eggs/tmpfcXY_fbuild
running develop
running egg_info
writing requirements to src/icom.egg-info/requires.txt
writing src/icom.egg-info/PKG-INFO
writing top-level names to src/icom.egg-info/top_level.txt
writing dependency_links to src/icom.egg-info/dependency_links.txt
writing entry points to src/icom.egg-info/entry_points.txt
reading manifest file 'src/icom.egg-info/SOURCES.txt'
writing manifest file 'src/icom.egg-info/SOURCES.txt'
running build_ext
Creating /Users/healdream/Dropbox/project/icom/develop-eggs/tmpfcXY_fbuild/icom.egg-link (link to src)
Installed /Users/healdream/Dropbox/project/icom/src
但是bin目录下没有create_db.py,也没有安装flask-actions
解决方法:
确保在您的鸡蛋清单中包含icom.将其添加到[buildout]部分:
[buildout]
...
eggs =
icom
sqlalchemy
flask
scss
或[icom]部分:
[icom]
recipe = zc.recipe.egg
eggs =
icom
${buildout:eggs}
...
标签:buildout,python 来源: https://codeday.me/bug/20191202/2086558.html