做工程为什么不用python_为什么“python setup.py sdist”在项目根目录中创建不需要的“PROJECT-egg.info”?...

当我跑

python setup.py sdist

它在我的./dist目录中创建一个sdist。这包括一个“PROJECT-egg.info”文件在我的“dist”文件夹中的zip,我不使用,但它不伤害我,所以我只是忽略它。

我的问题是为什么它还在我的项目根目录中创建一个“PROJECT-egg.info”文件夹?我可以让它停止创建这个吗?如果没有,我可以在创建sdist后立即删除它吗?

我使用从setuptools导入的’setup’功能。

WindowsXP,Python2.7,Setuptools 0.6c11,分发0.6.14。

我的安装配置看起来像:

{'author': 'Jonathan Hartley',

'author_email': 'tartley@tartley.com',

'classifiers': ['Development Status :: 1 - Planning',

'Intended Audience :: Developers',

'License :: OSI Approved :: BSD License',

'Operating System :: Microsoft :: Windows',

'Programming Language :: Python :: 2.7'],

'console': [{'script': 'demo.py'}],

'data_files': [('Microsoft.VC90.CRT',

['..\\lib\\Microsoft.VC90.CRT\\Microsoft.VC90.CRT.manifest',

'..\\lib\\Microsoft.VC90.CRT\\msvcr90.dll'])],

'description': 'Utilities for games and OpenGL graphics, built around Pyglet.\n',

'keywords': '',

'license': 'BSD',

'long_description': "blah blah blah",

'name': 'pygpen',

'options': {'py2exe': {'ascii': True,

'bundle_files': 1,

'dist_dir': 'dist/pygpen-0.1-windows',

'dll_excludes': [],

'excludes': ['_imaging_gif',

'_scproxy',

'clr',

'dummy.Process',

'email',

'email.base64mime',

'email.utils',

'email.Utils',

'ICCProfile',

'Image',

'IronPythonConsole',

'modes.editingmodes',

'startup',

'System',

'System.Windows.Forms.Clipboard',

'_hashlib',

'_imaging',

'_multiprocessing',

'_ssl',

'_socket',

'bz2',

'pyexpat',

'pyreadline',

'select',

'win32api',

'win32pipe',

'calendar',

'cookielib',

'difflib',

'doctest',

'locale',

'optparse',

'pdb',

'pickle',

'pyglet.window.xlib',

'pyglet.window.carbon',

'pyglet.window.carbon.constants',

'pyglet.window.carbon.types',

'subprocess',

'tarfile',

'threading',

'unittest',

'urllib',

'urllib2',

'win32con',

'zipfile'],

'optimize': 2}},

'packages': ['pygpen'],

'scripts': ['demo.py'],

'url': 'http://code.google.com/p/edpath/',

'version': '0.1',

'zipfile': None}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值