python都有什么包装_Python包装

试图创建一个

python包.似乎工作,但我得到一个警告.

我的setup.py是:

#! /usr/bin/env python

from distutils.core import setup

setup(

name='myPKG',

version='0.02.01',

url='http://someURL.02.01',

packages=['scripts',

'statistics'],

author = 'Research-Team',

author_email = 'me@gmail.com',

description='This is my package',

scripts=['scripts/myScript.py'],

entry_points={'console_scripts' : ['myCommandlineName = scripts.myScript:testRequireDecorator']},

install_requires=['numpy >= 1.5.1', 'scipy >= 0.9.0', 'poster']

)

我收到以下警告.为什么,具体来说,两个第一个用户警告?

root@TK: python setup.py sdist

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points'

warnings.warn(msg)

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'

warnings.warn(msg)

running sdist

running check

package init file 'scripts/__init__.py' not found (or not a regular file)

reading manifest template 'MANIFEST.in'

no previously-included directories found matching '.git'

warning: no previously-included files matching '*.pyc' found under directory '.'

writing manifest file 'MANIFEST'

creating myPKG-0.02.01

creating myPKG-0.02.01/scripts

creating myPKG-0.02.01/statistics

making hard links in myPKG-0.02.01...

hard linking README -> myPKG-0.02.01

hard linking setup.py -> myPKG-0.02.01

hard linking scripts/myScript.py -> myPKG-0.02.01/scripts

hard linking statistics/RunningMedian.py -> myPKG-0.02.01/statistics

hard linking statistics/RunningStdev.py -> myPKG-0.02.01/statistics

hard linking statistics/__init__.py -> myPKG-0.02.01/statistics

Creating tar archive

removing 'myPKG-0.02.01' (and everything under it)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值