Adds gns3-netifaces to dependencies only if netifaces isn't already installed

otherwise this requires a compilation and therefore the Python development files.
This commit is contained in:
grossmj 2015-06-14 17:27:07 -06:00
parent 8bcf749cd5
commit 87efc4d55a

View File

@ -38,15 +38,19 @@ class PyTest(TestCommand):
errcode = pytest.main(self.test_args) errcode = pytest.main(self.test_args)
sys.exit(errcode) sys.exit(errcode)
dependencies = [ dependencies = [
"gns3-netifaces>=0.10.4.1",
"jsonschema>=2.4.0", "jsonschema>=2.4.0",
"aiohttp>=0.15.1", "aiohttp>=0.15.1",
"Jinja2>=2.7.3", "Jinja2>=2.7.3",
"raven>=5.2.0" "raven>=5.2.0"
] ]
try:
import netifaces
except ImportError:
# add gns3-netifaces only if netifaces isn't already installed
# for instance via a Debian package.
dependencies.append("gns3-netifaces>=0.10.4.1")
setup( setup(
name="gns3-server", name="gns3-server",