admin管理员组文章数量:1794759
python制作图片贴纸
你做错了什么,应该有用.这是最小的工作示例,您可以使用virtualenv进行测试:
胡说/ setup.py:
from setuptools import setup, find_packages
setup(name='blah',
version='0.1',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=False,
entry_points={'paste.global_paster_command': [ "xxx_new = blah.xxx:NewXxx", ] },
)
等等/等等/ xxx.py:
from paste.script import command
class NewXxx(command.Command):
usage = "PREFIX"
summary = "some command"
group_name = "my group"
blah / blah / __ init__.py:空.
现在测试:
$pwd
/tmp
$virtualenv paster
New python executable in paster/bin/python
Installing setuptools............done.
Installing pip...............done.
$. paster/bin/activate
(paster)$pip install PasteScript
Downloading/unpacking PasteScript
[... skipping long pip output here ...]
(paster)$paster
[...]
Commands:
create Create the file layout for a Python distribution
help Display help
make-config Install a package and create a fresh config file/directory
points Show information about entry points
post Run a request for the described application
request Run a request for the described application
serve Serve the described application
setup-app Setup an application, given a config file
(paster)$cd blah/
(paster)$python setup.py develop
running develop
[... skipping setup.py output...]
(paster)$paster
[...]
Commands:
create Create the file layout for a Python distribution
help Display help
make-config Install a package and create a fresh config file/directory
points Show information about entry points
post Run a request for the described application
request Run a request for the described application
serve Serve the described application
setup-app Setup an application, given a config file
my group:
xxx_new some command
(paster)$cd ~
(paster)$paster
[...]
Commands:
[...]
setup-app Setup an application, given a config file
my group:
xxx_new some command
本文标签: python制作图片贴纸
版权声明:本文标题:python制作图片贴纸 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1700148777a404019.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论