Commit 883e57b0 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Monkey patch the source to work with gevent

Needed by new kamaki, otherwise it throughs an exception at the end.
parent a716819f
......@@ -33,6 +33,9 @@
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
import gevent.monkey # Monkey-patch everything for gevent early on
gevent.monkey.patch_all()
import dialog
import sys
import os
......
......@@ -33,6 +33,9 @@
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
import gevent.monkey # Monkey-patch everything for gevent early on
gevent.monkey.patch_all()
from image_creator import __version__ as version
from image_creator import util
from image_creator.disk import Disk
......
......@@ -46,7 +46,8 @@ setup(
license='BSD',
packages=find_packages(),
include_package_data=True,
install_requires=['sh', 'ansicolors', 'progress>=1.0.2', 'py-sendfile'],
install_requires=['sh', 'ansicolors', 'progress>=1.0.2', 'py-sendfile',
'gevent'],
entry_points={
'console_scripts': [
'snf-image-creator = image_creator.main:main',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment