Add 'console_scripts' section to 'entry_points', so 'pypi-server.exe' will be created on Windows.

This commit is contained in:
Eduard-Cristian Stefan 2012-08-22 21:33:19 +03:00
parent 538c74761a
commit c5b8e85c79
1 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,10 @@ import sys, os
try: try:
from setuptools import setup from setuptools import setup
extra = dict(entry_points={'paste.app_factory': ['main=pypiserver:paste_app_factory']}) extra = dict(entry_points={
'paste.app_factory': ['main=pypiserver:paste_app_factory'],
'console_scripts': ['pypi-server=pypiserver.core:main']
})
except ImportError: except ImportError:
from distutils.core import setup from distutils.core import setup
extra = dict() extra = dict()