Skip to content

Commit

Permalink
Work around GH oddities
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed May 25, 2024
1 parent 5d3376b commit 7d1923f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/buildapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ jobs:
curl https://www.python.org/ftp/python/3.12.3/python-3.12.3-macos11.pkg --output python-installer.pkg
sudo installer -pkg python-installer.pkg -target /
- name: Check Python
run: |
which python3.12-intel64
python3.12-intel64 --version
python3.12-intel64 -c "import platform; print('macOS version:', platform.mac_ver()[0], platform.platform())"
- name: Setup Virtual Environment
run: |
python3.12-intel64 -m venv venv
# Somehow using plain "python3" gives us the runner's homebrew Python,
# so let's be explicit about the path:
ourpython=/Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12-intel64
ls -l $ourpython
$ourpython --version
$ourpython -c "import platform; print('platform:', platform.platform())"
$ourpython -c "import platform; print('macOS version:', platform.mac_ver()[0])"
$ourpython -m venv venv
source venv/bin/activate
python -c "import sys; print('\n'.join(sys.path))"
python --version
python -c "import platform; print('macOS version:', platform.mac_ver()[0], platform.platform())"
- name: Install Dependencies
Expand Down

0 comments on commit 7d1923f

Please sign in to comment.