mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-16 16:54:51 +02:00
Adds netifaces module in the setup dependencies.
This commit is contained in:
parent
6d56da03e5
commit
30ed89847b
@ -91,7 +91,7 @@ def interfaces():
|
|||||||
results.append({"id": interface,
|
results.append({"id": interface,
|
||||||
"name": interface})
|
"name": interface})
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return
|
raise aiohttp.web.HTTPInternalServerError(text="Could not import netifaces module")
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
results = get_windows_interfaces()
|
results = get_windows_interfaces()
|
||||||
|
3
setup.py
3
setup.py
@ -39,6 +39,9 @@ dependencies = ["aiohttp==0.14.4",
|
|||||||
"Jinja2==2.7.3",
|
"Jinja2==2.7.3",
|
||||||
"raven==5.2.0"]
|
"raven==5.2.0"]
|
||||||
|
|
||||||
|
if not sys.platform.startswith("win"):
|
||||||
|
dependencies.append("netifaces==0.10.4")
|
||||||
|
|
||||||
if sys.version_info == (3, 3):
|
if sys.version_info == (3, 3):
|
||||||
dependencies.append("asyncio==3.4.2")
|
dependencies.append("asyncio==3.4.2")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user