Skip to content

Commit

Permalink
CI: everything in venv in mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
jotelha committed Nov 8, 2024
1 parent 0b04ea7 commit 6c2431e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build-installer-on-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ jobs:
# strategy: only install remaining pythonic dependencies via pip
- name: Install remaining pythonic dependencies
run: |
source venv/bin/activate
echo "### python and pip info ###"
command -v python
python --version
Expand All @@ -111,20 +113,11 @@ jobs:
- name: Fix setuptools_scm-generated version
id: fix_version
run: |
source venv/bin/activate
version=$(SETUPTOOLS_SCM_DEBUG=1 python -m setuptools_scm) # have version written to file to appear in bundled app as well
echo "version=$version" >> $GITHUB_OUTPUT
- name: Create local venv
run: |
# recursive copy_metadata needed local reinstall of
# $ pip install --ignore-installed six
# in minsys2/mingw64, would otherwise fail with
# RuntimeError: No metadata path found for distribution 'six'.
# in pyinstaller/hooks/hook-dtoolcore.py
python -m venv --system-site-packages venv
source venv/bin/activate
pip install --ignore-installed six
- name: Log python package info
run: |
source venv/bin/activate
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/build-on-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ jobs:
# strategy: only install remaining pythonic dependencies via pip
- name: Install remaining pythonic dependencies
run: |
source venv/bin/activate
echo "### python and pip info ###"
command -v python
python --version
Expand All @@ -111,20 +113,11 @@ jobs:
- name: Fix setuptools_scm-generated version
id: fix_version
run: |
source venv/bin/activate
version=$(SETUPTOOLS_SCM_DEBUG=1 python -m setuptools_scm) # have version written to file to appear in bundled app as well
echo "version=$version" >> $GITHUB_OUTPUT
- name: Create local venv
run: |
# recursive copy_metadata needed local reinstall of
# $ pip install --ignore-installed six
# in minsys2/mingw64, would otherwise fail with
# RuntimeError: No metadata path found for distribution 'six'.
# in pyinstaller/hooks/hook-dtoolcore.py
python -m venv --system-site-packages venv
source venv/bin/activate
pip install --ignore-installed six
- name: Log python package info
run: |
source venv/bin/activate
Expand Down

0 comments on commit 6c2431e

Please sign in to comment.