Skip to content

Commit

Permalink
🐛 set env var for CIBW build selection
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Sep 8, 2024
1 parent b467c71 commit 5e0ffb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ozi/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from __future__ import annotations

import inspect
import os
import sys
from pathlib import Path
from typing import TYPE_CHECKING
Expand Down Expand Up @@ -94,7 +95,7 @@ def release(
ozi: bool = False,
) -> None:
"""Create releases for the current interpreter."""
version = f'cp{sys.version_info.major}{sys.version_info.minor}'
os.environ['CIBW_BUILD'] = f'cp{sys.version_info.major}{sys.version_info.minor}'
draft_ = setup(c, suite='dist', draft=draft, ozi=ozi)
if draft_ and draft_.exited != 0:
return print('No release drafted.', file=sys.stderr)
Expand All @@ -103,7 +104,7 @@ def release(
if sign:
c.run('sigstore sign --output-dir=sig dist/*.tar.gz')
ext_wheel = (
c.run(f'cibuildwheel --prerelease-pythons --only={version} --output-dir dist .')
c.run(f'cibuildwheel --prerelease-pythons --output-dir dist .')
if cibuildwheel
else None
)
Expand Down

0 comments on commit 5e0ffb6

Please sign in to comment.