Provides a subclass of Thread with facilities to raise an exception
in the thread or terminate the thread from another thread.
terminable_thread provides a subclass of threading.Thread, adding
the facility to raise exceptions in the context of the given thread.
This facility is incorporated in the terminable_thread.Thread methods
raise_exc, which raises an arbitrary exception, and terminate, which
raises SystemExit.
This is not done in an entirely robust manner, and there may be
unreported issues with it.
It uses the unexposed PyThreadState_SetAsyncExc function (via ctypes)
to raise an exception for the given thread.
WWW: https://github.com/intuited/terminable_thread
Remove deprecated ports:
2020-08-15 archivers/py-backports.lzma: Uses deprecated version of python
2020-08-15 archivers/py-bup: Uses deprecated version of python
2020-08-15 archivers/py-librtfcomp: Uses deprecated version of python
2020-08-15 audio/blop-lv2: Uses deprecated version of python
2020-08-15 audio/bs2b-lv2: Uses deprecated version of python
2020-08-15 audio/py-gmusicproxy: Uses deprecated version of python
2020-08-15 audio/py-karaoke: Uses deprecated version of python
2020-08-15 audio/py-openal: Uses deprecated version of python
2020-08-15 audio/py-py-jack: Uses deprecated version of python
2020-08-15 audio/py-xmms2: Uses deprecated version of python
2020-08-15 audio/triceratops-lv2: Uses deprecated version of python
2020-08-15 biology/py-biom-format: Uses deprecated version of python
2020-08-15 comms/py-bulksms: Uses deprecated version of python
(Only the first 15 lines of the commit message are shown above )
Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the
(Only the first 15 lines of the commit message are shown above )
New port devel/py-terminable_thread:
terminable_thread provides a subclass of threading.Thread, adding
the facility to raise exceptions in the context of the given
thread.
This facility is incorporated in the terminable_thread.Thread
methods raise_exc, which raises an arbitrary exception, and
terminate, which raises SystemExit.
This is not done in an entirely robust manner, and there may be
unreported issues with it.
It uses the unexposed PyThreadState_SetAsyncExc function (via
ctypes) to raise an exception for the given thread.
Sponsored by: Farsight Security, Inc.