root / env / lib / python2.7 / site-packages / distribute-0.6.19-py2.7.egg / setuptools / command / __init__.py @ 1a305335
History | View | Annotate | Download (690 Bytes)
1 |
__all__ = [ |
---|---|
2 |
'alias', 'bdist_egg', 'bdist_rpm', 'build_ext', 'build_py', 'develop', |
3 |
'easy_install', 'egg_info', 'install', 'install_lib', 'rotate', 'saveopts', |
4 |
'sdist', 'setopt', 'test', 'upload', 'install_egg_info', 'install_scripts', |
5 |
'register', 'bdist_wininst', 'upload_docs', |
6 |
] |
7 |
|
8 |
from setuptools.command import install_scripts |
9 |
import sys |
10 |
|
11 |
if sys.version>='2.5': |
12 |
# In Python 2.5 and above, distutils includes its own upload command
|
13 |
__all__.remove('upload')
|
14 |
|
15 |
from distutils.command.bdist import bdist |
16 |
|
17 |
|
18 |
if 'egg' not in bdist.format_commands: |
19 |
bdist.format_command['egg'] = ('bdist_egg', "Python .egg file") |
20 |
bdist.format_commands.append('egg')
|
21 |
|
22 |
del bdist, sys
|