Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Prevent Parallization on Windows #265

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/catkin_pkg/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"""Library to find packages in the filesystem."""

import multiprocessing
import os
import os, sys

from .package import _get_package_xml
from .package import PACKAGE_MANIFEST_FILENAME
Expand Down Expand Up @@ -134,6 +134,11 @@ def find_packages_allowing_duplicates(basepath, exclude_paths=None, exclude_subs
return {}

parallel = len(data) > 100
if sys.platform == "win32":
# Windows has path limitations which catkin overflows in nested environments
# https://devblogs.microsoft.com/oldnewthing/20100203-00/?p=15083
parallel = False

if parallel:
try:
pool = multiprocessing.Pool()
Expand Down