Skip to content

Commit b6c8444

Browse files
committed
Merge branch 'main' into nurbs-surface
2 parents 9594b4d + 10232f6 commit b6c8444

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
* Added `compas_plotters.artists.NetworkArtist.draw_nodelabels`.
1313
* Added `compas_plotters.artists.NetworkArtist.draw_edgelabels`.
1414
* Added `compas_plotters.Plotter.fontsize`.
15+
* Added `INSTALLED_VERSION` variable to `compas_rhino.install` to interally inform rhino version context post-installation steps.
1516
* Added `compas_rhino.geometry.RhinoNurbsSurface`.
1617
* Added `compas_rhino.geometry.surfaces.new_nurbssurface` plugin.
1718
* Added `compas_rhino.geometry.surfaces.new_nurbssurface_from_parameters` plugin.

src/compas_rhino/install.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
__all__ = [
1616
'install',
1717
'installable_rhino_packages',
18-
'after_rhino_install',
18+
'after_rhino_install'
1919
]
2020

21+
INSTALLED_VERSION = None
22+
2123

2224
def install(version=None, packages=None, clean=False):
2325
"""Install COMPAS for Rhino.
@@ -202,6 +204,9 @@ def install(version=None, packages=None, clean=False):
202204
if exit_code != 0:
203205
sys.exit(exit_code)
204206

207+
global INSTALLED_VERSION
208+
INSTALLED_VERSION = version
209+
205210

206211
def _run_post_execution_steps(steps_generator):
207212
all_steps_succeeded = True

0 commit comments

Comments
 (0)