python没有运行_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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值