Skip to content

Commit

Permalink
- more adjustments for pure builds;
Browse files Browse the repository at this point in the history
  • Loading branch information
jaltmayerpizzorno committed Apr 12, 2024
1 parent 38e0be0 commit a06638f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ jobs:
- os: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64 # https://github.com/pypa/manylinux
# just need ONE build from 3.12 onwards; also only one needs to upload sources
- os: macos-latest
python_version: 3.12
- python_version: 3.12
os: ubuntu-latest
container: ''
upload_source: true

steps:
Expand Down
6 changes: 5 additions & 1 deletion src/slipcover/slipcover.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
import threading

if sys.version_info[0:2] < (3,12):
from . import probe
try:
from . import probe
except ImportError:
raise RuntimeError("You probably have the wrong package; " + \
"SlipCover for Python <3.12 requires version-specific builds")
from . import bytecode as bc

from pathlib import Path
Expand Down

0 comments on commit a06638f

Please sign in to comment.