@@ -62,7 +62,7 @@ def help(ctx):
6262 'docs' : 'True to clean up generated documentation, otherwise False' ,
6363 'bytecode' : 'True to clean up compiled python files, otherwise False.' ,
6464 'builds' : 'True to clean up build/packaging artifacts, otherwise False.' })
65- def clean (ctx , docs = True , bytecode = True , builds = True ):
65+ def clean (ctx , docs = True , bytecode = True , builds = True , ghuser = True ):
6666 """Cleans the local copy from compiled artifacts."""
6767
6868 with chdir (BASE_FOLDER ):
@@ -92,6 +92,9 @@ def clean(ctx, docs=True, bytecode=True, builds=True):
9292 folders .append ('build/' )
9393 folders .append ('src/compas.egg-info/' )
9494
95+ if ghuser :
96+ folders .append ('src/compas_ghpython/components/ghuser' )
97+
9598 for folder in folders :
9699 shutil .rmtree (os .path .join (BASE_FOLDER , folder ), ignore_errors = True )
97100
@@ -192,7 +195,8 @@ def build_ghuser_components(ctx, gh_io_folder=None, ironpython=None):
192195 """Build Grasshopper user objects from source"""
193196 with chdir (BASE_FOLDER ):
194197 with tempfile .TemporaryDirectory ('actions.ghcomponentizer' ) as action_dir :
195- target_dir = source_dir = os .path .abspath ('src/compas_ghpython/components' )
198+ source_dir = os .path .abspath ('src/compas_ghpython/components' )
199+ target_dir = os .path .join (source_dir , 'ghuser' )
196200 ctx .run ('git clone https://github.com/compas-dev/compas-actions.ghpython_components.git {}' .format (action_dir ))
197201 if not gh_io_folder :
198202 import compas_ghpython
0 commit comments