Commit c972449f authored by Tom Henderson's avatar Tom Henderson
Browse files

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

Showing with 1 addition and 10 deletions
+1 -10
#!/usr/bin/env python
#!/usr/bin/env python3
# encoding: latin-1
# Thomas Nagy, 2005-2018
#
......
......@@ -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')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment