Код: Выделить всё
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'name': 'clitool',
'author': 'aa',
'author_email': 'ww',
'version': '1.0-rc',
'install_requires': ['nose'],
'packages': [],
'scripts': ['clitool']
}
setup(**config)
Код: Выделить всё
setup.py install
Код: Выделить всё
"clitool" not recognized as an internal or external command
Но у меня скрипт копируется как файл без расширения и в винде он не запускается.
Подробнее здесь: https://stackoverflow.com/questions/311 ... on-windows
Мобильная версия