Skip to content

Commit

Permalink
add makefile mod step pre-copier
Browse files Browse the repository at this point in the history
  • Loading branch information
lizgehret committed Dec 18, 2024
1 parent b667ee0 commit 66c74ae
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/pyproject-copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,22 @@ jobs:
f.write(updated_content)
EOF
- name: 'Update install command in Makefile'
run: |
python - <<EOF
with open("Makefile", "r", encoding="utf-8") as f:
content = f.read()
old_block = ("$(PYTHON) setup.py install")
new_block = ("$(PYTHON) -m pip install -v .")
updated_content = content.replace(old_block, new_block)
with open("Makefile", "w", encoding="utf-8") as f:
f.write(updated_content)
EOF
- name: 'Update location of recipe file in ci-dev workflow'
run: |
python - <<EOF
Expand Down

0 comments on commit 66c74ae

Please sign in to comment.