Skip to content

Commit c22bea5

Browse files
authored
Merge pull request #2 from compas-dev/gh_cpython
ghuser cpython task has its own configuration section
2 parents 7111e57 + 0a35e52 commit c22bea5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
* Task `build-cpython-ghuser-components` now uses `ghuser_cpython` configuration key.
15+
1416
### Removed
1517

1618

src/compas_invocations2/build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ def build_ghuser_components(ctx, gh_io_folder=None, ironpython=None, prefix=None
149149
)
150150
def build_cpython_ghuser_components(ctx, gh_io_folder=None, prefix=None):
151151
"""Builds CPython Grasshopper components using GH Componentizer."""
152-
prefix = prefix or getattr(ctx.ghuser, "prefix", None)
153-
source_dir = os.path.abspath(ctx.ghuser.source_dir)
154-
target_dir = os.path.abspath(ctx.ghuser.target_dir)
152+
prefix = prefix or getattr(ctx.ghuser_cpython, "prefix", None)
153+
source_dir = os.path.abspath(ctx.ghuser_cpython.source_dir)
154+
target_dir = os.path.abspath(ctx.ghuser_cpython.target_dir)
155155
repo_url = "https://github.com/compas-dev/compas-actions.ghpython_components.git"
156156

157157
with chdir(ctx.base_folder):

0 commit comments

Comments
 (0)