Skip to content

Commit 63ba56b

Browse files
committed
Blacklist inter-process communication of unpicklables
1 parent a50e726 commit 63ba56b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

colcon_core/package_identification/python.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ def _get_setup_result_target(setup_py: str, env: Optional[dict], conn_send):
159159
and not callable(value)
160160
# Private properties
161161
and not attr.startswith('_')
162+
# Objects that are generally not picklable
163+
and attr not in ('cmdclass', 'distclass', 'ext_modules')
162164
)})
163165
except BaseException:
164166
conn_send.send(traceback.format_exc())

0 commit comments

Comments
 (0)