Skip to content

Commit

Permalink
Merge branch 'jbrill-gh4320-fix' of github.com:jcbrill/scons into jbr…
Browse files Browse the repository at this point in the history
…ill-gh4320-fix
  • Loading branch information
bdbaddog committed Dec 11, 2023
2 parents b4f80a7 + 5c074f7 commit 72e3a75
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 19 deletions.
15 changes: 13 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,23 @@ NOTE: The 4.0.0 Release of SCons dropped Python 2.7 Support
NOTE: 4.3.0 now requires Python 3.6.0 and above. Python 3.5.x is no longer supported

RELEASE VERSION/DATE TO BE FILLED IN LATER

From Ataf Fazledin Ahamed:
- Use of NotImplemented instead of NotImplementedError for special methods
of _ListVariable class

From Joseph Brill:
- Add an optional argument list string to configures CheckFunc method so
- Add an optional argument list string to configure's CheckFunc method so
that the generated function argument list matches the function's
prototype when including a header file. Fixes GH Issue #4320

From Michał Górny:
- Remove unecessary dependencies on pypi packages from setup.cfg

From Sten Grüner:
- Fix of the --debug=sconscript option to return exist statements when using return
statement with stop flag enabled



RELEASE 4.6.0 - Sun, 19 Nov 2023 17:22:20 -0700

Expand Down
12 changes: 6 additions & 6 deletions RELEASE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,26 @@ DEPRECATED FUNCTIONALITY
CHANGED/ENHANCED EXISTING FUNCTIONALITY
---------------------------------------

- Add an optional argument list string to configures CheckFunc method so
- Add an optional argument list string to configure's CheckFunc method so
that the generated function argument list matches the function's
prototype when including a header file. Fixes GH Issue #4320

FIXES
-----

- List fixes of outright bugs
- Fix of the --debug=sconscript option to return exist statements when using return
statement with stop flag enabled

IMPROVEMENTS
------------

- List improvements that wouldn't be visible to the user in the
documentation: performance improvements (describe the circumstances
under which they would be observed), or major code cleanups
- Use of NotImplemented instead of NotImplementedError for special methods
of _ListVariable class

PACKAGING
---------

- List changes in the way SCons is packaged and/or released
- Remove unecessary dependencies on pypi packages from setup.cfg

DOCUMENTATION
-------------
Expand Down
5 changes: 4 additions & 1 deletion SCons/Script/SConscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ def _SConscript(fs, *files, **kw):
if SCons.Debug.sconscript_trace:
print("scons: Exiting "+str(scriptname))
except SConscriptReturn:
pass
if SCons.Debug.sconscript_trace:
print("scons: Exiting "+str(scriptname))
else:
pass
finally:
if Main.print_time:
elapsed = time.perf_counter() - start_time
Expand Down
12 changes: 6 additions & 6 deletions SCons/Variables/ListVariable.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,22 @@ def __init__(self, initlist=None, allowedElems=None) -> None:
self.allowedElems = sorted(allowedElems)

def __cmp__(self, other):
raise NotImplementedError
return NotImplemented

def __eq__(self, other):
raise NotImplementedError
return NotImplemented

def __ge__(self, other):
raise NotImplementedError
return NotImplemented

def __gt__(self, other):
raise NotImplementedError
return NotImplemented

def __le__(self, other):
raise NotImplementedError
return NotImplemented

def __lt__(self, other):
raise NotImplementedError
return NotImplemented

def __str__(self) -> str:
if not len(self):
Expand Down
4 changes: 0 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ classifiers =
[options]
zip_safe = False
python_requires = >=3.6
install_requires = setuptools
setup_requires =
setuptools
build
include_package_data = True
packages = find:

Expand Down
12 changes: 12 additions & 0 deletions test/option/debug-sconscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@
'scons: Exiting %s%sSConstruct' % (wpath, os.sep)
]
test.must_contain_all_lines(test.stdout(), expect)

# Ensure that reutrns with stop are handled properly

test.write('SConstruct', """\
foo = "bar"
Return("foo", stop=True)
print("SConstruct")
""")

test.run(arguments="--debug=sconscript .")
test.must_contain_all_lines(test.stdout(), expect)

test.pass_test()

# Local Variables:
Expand Down

0 comments on commit 72e3a75

Please sign in to comment.