pybind11/pybind11
Bobby Impollonia 7516811315
fix(setup_helpers): ensure ThreadPool is closed (#3548)
* Ensure ThreadPool is closed in setup_helpers

The ParallelCompile setup helper using a ThreadPool to enable its
parallelism. It does not properly close the pool when it is done with
it.
This can lead to a "Exception ignored in: <function Pool.__del__..."
message with traceback being printed at shutdown.
Use pool.terminate() instead of context manager for Python 2.7
compatibility

* Add note to remove code that supports Python 2

Co-authored-by: Bobby Impollonia <bobby@k13capital.com>
2021-12-13 12:45:33 -05:00
..
__init__.py maint(precommit): Apply isort (#3195) 2021-08-13 12:37:05 -04:00
__main__.py maint(precommit): Apply isort (#3195) 2021-08-13 12:37:05 -04:00
_version.py chore: get back to work after 2.8.1 2021-10-27 15:15:11 -07:00
_version.pyi maint(precommit): Apply isort (#3195) 2021-08-13 12:37:05 -04:00
commands.py maint(precommit): Apply isort (#3195) 2021-08-13 12:37:05 -04:00
py.typed feat: typing support for helpers (#2588) 2020-10-14 14:08:41 -04:00
setup_helpers.py fix(setup_helpers): ensure ThreadPool is closed (#3548) 2021-12-13 12:45:33 -05:00
setup_helpers.pyi maint(precommit): Apply isort (#3195) 2021-08-13 12:37:05 -04:00