Merge pull request #20 from alexandrul/master

Add 'console_scripts' section to 'entry_points', so 'pypi-server.exe' will be created on Windows.
This commit is contained in:
Ralf Schmitt 2012-08-22 12:14:03 -07:00
commit dfb2a21a48
1 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,10 @@ import sys, os
try:
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:
from distutils.core import setup
extra = dict()