Skip to content

Commit 542c0e4

Browse files
committed
fix duplicates in installable_rhino_packages
1 parent 96420e2 commit 542c0e4

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)