Skip to content

Commit d7e105b

Browse files
committed
allow for plugins without packages
1 parent d60decc commit d7e105b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/compas_rhino/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def install(version=None, packages=None, clean=False):
187187

188188
# output the outcome of the installation process
189189
# perhaps we should more info here
190-
print('Installing COMPAS packages to Rhino {0} scripts folder:'.format(version))
190+
print('\nInstalling COMPAS packages to Rhino {0} scripts folder:'.format(version))
191191
print('{}\n'.format(scripts_path))
192192

193193
for package, status in results:

src/compas_rhino/install_plugin.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ def install_plugin(plugin, version=None):
125125
if not __plugin__.title:
126126
raise Exception('Plugin title is not set.')
127127

128-
if not __plugin__.packages:
129-
raise Exception('Plugin packages is not set.')
130-
131128
plugin_fullname = "{}{}".format(__plugin__.title, __plugin__.id)
132129

133130
python_plugins_path = compas_rhino._get_rhino_pythonplugins_path(version)
@@ -140,7 +137,8 @@ def install_plugin(plugin, version=None):
140137

141138
# Stat the installation process
142139

143-
install_packages(version=version, packages=__plugin__.packages)
140+
if hasattr(__plugin__, 'packages'):
141+
install_packages(version=version, packages=__plugin__.packages)
144142

145143
print('\nInstalling PlugIn {} to Rhino PythonPlugIns.'.format(plugin_name))
146144

0 commit comments

Comments
 (0)