Skip to content
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
6 changes: 6 additions & 0 deletions src/catkin_pkg/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

import multiprocessing
import os
import sys

from .package import _get_package_xml
from .package import PACKAGE_MANIFEST_FILENAME
Expand Down Expand Up @@ -134,6 +135,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