Skip to content

Commit

Permalink
Merge pull request #798 from compas-dev/dedup-installable-pkgs
Browse files Browse the repository at this point in the history
Fix duplicates in installable_rhino_packages
  • Loading branch information
gonzalocasas authored Mar 26, 2021
2 parents 96420e2 + 542c0e4 commit 8416eed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

* Fixed rhino packages installation to remove duplicates

### Removed


Expand Down
2 changes: 1 addition & 1 deletion src/compas_rhino/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def _filter_installable_packages(version, packages):

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

Expand Down

0 comments on commit 8416eed

Please sign in to comment.