1
0
mirror of https://github.com/pypiserver/pypiserver synced 2024-11-09 16:45:51 +01:00

make pypi-server-standalone not use waitress

waitress needs at least python 2.6
This commit is contained in:
Ralf Schmitt 2013-01-03 22:12:23 +01:00
parent 9dc1bafa47
commit 2d7b42cd80
2 changed files with 5 additions and 1 deletions

@ -452,6 +452,7 @@ Changelog
(https://github.com/schmir/pypiserver/issues/25)
- add description of uploads to the documentation
- make the test suite work on python 3
- make pypi-server-standalone work with python 2.5
1.0.0 (2012-10-26)
------------------

@ -59,5 +59,8 @@ sys.meta_path.append(importer)
if __name__ == "__main__":
from pypiserver import core
core.DEFAULT_SERVER = "waitress"
if sys.version_info >= (2, 6):
core.DEFAULT_SERVER = "waitress"
else:
core.bottle.AutoServer.adapters.remove(core.bottle.WaitressServer)
core.main()