build: (workaround for #16) Make Waf default to Python 3

This commit is contained in:
Tom Henderson
2019-08-21 13:26:32 -07:00
parent 74ec793057
commit c972449f77
2 changed files with 1 additions and 10 deletions

2
waf vendored
View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# encoding: latin-1
# Thomas Nagy, 2005-2018
#

View File

@@ -368,15 +368,6 @@ def configure(conf):
env = conf.env
# ns-3 now only supports Python3 but Waf is based on Python2
# This can be removed once Waf moves to Python3
if Options.options.with_python is None:
if sys.version_info < (3,):
# Forcing otherwise unused Options.options.python to select python3
# This option is checked later by waflib
Options.options.python = 'python3'
conf.msg('Configuring Waf to use python3: ', Options.options.python, 'GREEN')
if Options.options.enable_gcov:
env['GCOV_ENABLED'] = True
env.append_value('CCFLAGS', '-fprofile-arcs')