[Windows] Disable multiprocessing usage for package.py on Windows#250
[Windows] Disable multiprocessing usage for package.py on Windows#250seanyen wants to merge 3 commits intoros-infrastructure:masterfrom ms-iot:catkin_pkg_windows_patch
Conversation
Can you please provide more information about this? |
|
@dirk-thomas based on Python manual, the multiprocessing usage on Windows requires additional treatment to get it worked properly. https://docs.python.org/2/library/multiprocessing.html Here is one example how the downstream could be impacted by this multiprocessing issue: |
I am sorry but this page is really long and I don't find the information you are trying to point to. Please either use a specific link to the section describing the documentation you are referring to or quote the relevant text from the docs here. |
|
Here is the specific link to the Windows section: https://docs.python.org/2/library/multiprocessing.html#windows |
|
Ok, I have read the section "16.6.3.2. Windows" - in particular "Safe importing of main module". Have you tried to apply the suggest call of |
|
For
Alternatively, we can use the However, my questions are that since |
I wonder if this can't be worked around in
I would rather not apply a workaround if the possibility of a actual fix in |
That's fair enough. I will look for impacted tools and send fix PR there instead. |
There might be a misunderstanding. I am suggesting to try to find a fix for |
|
@dirk-thomas Thanks for the clarification! I created #251 to propose a change to be only scoped in catkin_pkg. Please take a look and let me know what do you think. |
|
@dirk-thomas Since workaround is not really preferred at this moment, and I haven't really found a good way to isolate a fix to only catkin_pkg. I will keep pushing the |
Use .py to invoke `catkin_make_isolated` to workaround `multiprocessing` behavior on Python 2.7 on Windows. See discussion: ros-infrastructure/catkin_pkg#250
On Windows, the multiprocessing will require the script who consumes the catkin_pkg to be patched in order to work properly.
Instead of touching up all the scripts consuming catkin_pkg, disable multiprocessing on Windows. Otherwise, catkin_pkg won't work for a workspace with more than 100 packages on Windows.