Skip to content

Commit 8895ac4

Browse files
committed
refactor: replace inline pip install command with script in conda build process
1 parent cee871d commit 8895ac4

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.conda/build_access_moppy.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
set -euxo pipefail
3+
4+
$PYTHON -m pip install . -vv --no-deps

.conda/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ outputs:
2222
- name: access-moppy
2323
build:
2424
noarch: python
25-
script: "{{ PYTHON }} -m pip install . -vv --no-deps"
25+
script: build_access_moppy.sh
2626
requirements:
2727
host:
2828
- python

.github/workflows/cd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
- name: access-moppy
117117
build:
118118
noarch: python
119-
script: "$PYTHON -m pip install . -vv --no-deps"
119+
script: build_access_moppy.sh
120120
requirements:
121121
host:
122122
- python
@@ -171,6 +171,7 @@ jobs:
171171
recipe-maintainers:
172172
- ACCESS-NRI
173173
EOF
174+
chmod +x .conda-temp/build_access_moppy.sh
174175
echo "Created temporary conda recipe to use local source (path: ../)"
175176
- name: Setup conda environment
176177
uses: conda-incubator/setup-miniconda@v4

0 commit comments

Comments
 (0)