Skip to content

Commit 8416eed

Browse files
authored
Merge pull request #798 from compas-dev/dedup-installable-pkgs
Fix duplicates in installable_rhino_packages
2 parents 96420e2 + 542c0e4 commit 8416eed

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
### Changed
1818

19+
* Fixed rhino packages installation to remove duplicates
20+
1921
### Removed
2022

2123

src/compas_rhino/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def _filter_installable_packages(version, packages):
247247

248248
if not packages:
249249
# Flatten list of results (resulting from collect_all pluggable)
250-
packages = list(itertools.chain.from_iterable(installable_rhino_packages()))
250+
packages = sorted(set(itertools.chain.from_iterable(installable_rhino_packages())))
251251
elif 'compas_ghpython' in packages and ghpython_incompatible:
252252
print('Skipping installation of compas_ghpython since it\'s not supported for Rhino 5 for Mac')
253253

0 commit comments

Comments
 (0)