1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Adds netifaces module in the setup dependencies.

This commit is contained in:
grossmj 2015-03-14 15:40:00 -06:00
parent 6d56da03e5
commit 30ed89847b
2 changed files with 4 additions and 1 deletions

View File

@ -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()

View File

@ -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")