Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ exclude = [
"./test/third_party/",
"./third_party/",
"./tools/filelock.py",
"./tools/scons/",
".git",
]

Expand Down
3 changes: 2 additions & 1 deletion tools/scons/site_scons/site_tools/emscripten/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
# University of Illinois/NCSA Open Source License. Both these licenses can be
# found in the LICENSE file.

from .emscripten import exists, generate
from .emscripten import exists as exists
from .emscripten import generate as generate
13 changes: 5 additions & 8 deletions tools/scons/site_scons/site_tools/emscripten/emscripten.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# University of Illinois/NCSA Open Source License. Both these licenses can be
# found in the LICENSE file.

from __future__ import print_function
import os


Expand All @@ -15,9 +14,8 @@ def path_to_bin(emscripten_root, bin_name):
return os.path.join(emscripten_root, bin_name)


def generate(env, **kw):
""" SCons tool entry point """

def generate(env, **_kw):
"""SCons tool entry point."""
# SCons does not by default invoke the compiler with the
# environment variables from the parent calling process,
# so manually route all environment variables referenced
Expand All @@ -41,9 +39,8 @@ def generate(env, **kw):
if var in os.environ:
env['ENV'][var] = os.environ[var]

for var in pkg_config_vars:
for var, real_key in pkg_config_vars.items():
if var in os.environ:
real_key = pkg_config_vars[var]
env['ENV'][real_key] = os.environ[var]

# Binary paths will be constructed from here if available.
Expand All @@ -64,6 +61,6 @@ def generate(env, **kw):
env.Replace(PROGSUFFIX='.js')


def exists(env):
""" NOOP method required by SCons """
def exists(_env):
"""NOOP method required by SCons."""
return 1
Loading