supporting windows users
This commit is contained in:
parent
bbb5419ffe
commit
54a05f8365
3
setup.py
3
setup.py
|
@ -8,6 +8,7 @@ from distutils.errors import DistutilsPlatformError
|
||||||
from distutils.util import strtobool
|
from distutils.util import strtobool
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
from sys import platform
|
||||||
|
|
||||||
|
|
||||||
def open_local(paths, mode='r', encoding='utf8'):
|
def open_local(paths, mode='r', encoding='utf8'):
|
||||||
|
@ -65,7 +66,7 @@ if strtobool(os.environ.get("SANIC_NO_UJSON", "no")):
|
||||||
print("Installing without uJSON")
|
print("Installing without uJSON")
|
||||||
requirements.remove(ujson)
|
requirements.remove(ujson)
|
||||||
|
|
||||||
if True or strtobool(os.environ.get("SANIC_NO_UVLOOP", "no")):
|
if platform == "win32" or strtobool(os.environ.get("SANIC_NO_UVLOOP", "no")):
|
||||||
print("Installing without uvLoop")
|
print("Installing without uvLoop")
|
||||||
requirements.remove(uvloop)
|
requirements.remove(uvloop)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user