Skip to content

Commit

Permalink
Use older version for native python
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Jul 16, 2023
1 parent fb9517e commit 979e2ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build-native-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,16 @@ jobs:
run: |
pip3 install nox
# - name: Fetch Native Build
# if: ${{ matrix.arch != 'amd64' }}
# env:
# RELENV_FETCH_VERSION: latest
# run: |
# python3 -m relenv fetch --python=${{ matrix.version }}
- name: Fetch Native Build
if: ${{ matrix.arch != 'amd64' }}
env:
RELENV_FETCH_VERSION: latest
run: |
python3 -m relenv fetch --python=3.10.11
- name: Build Python with Relenv
env:
RELENV_NATIVE_PY_VERSION: 3.10.11
run: |
python -m relenv build --arch=${{ matrix.arch }} --python=${{ matrix.version }}
Expand Down
7 changes: 5 additions & 2 deletions relenv/build/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1184,9 +1184,12 @@ def __call__(
if self.build_arch != self.arch:
native_root = DATA_DIR / "native"
if not native_root.exists():
if "RELENV_NATIVE_PY_VERSION" in os.environ:
version = os.environ["RELENV_NATIVE_PY_VERSION"]
else:
version = self.version
from relenv.create import create

create("native", DATA_DIR, version=self.version)
create("native", DATA_DIR, version=version)

# Start a process for each build passing it an event used to notify each
# process if it's dependencies have finished.
Expand Down

0 comments on commit 979e2ae

Please sign in to comment.