We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef5e300 commit b147791Copy full SHA for b147791
.github/workflows/testing-install.yaml
@@ -34,8 +34,23 @@ jobs:
34
35
- name: Install from built artifacts
36
run: |
37
- # Use the wheel if it's pure-python; fallback to sdist otherwise
38
- pip install dist/*.whl || pip install dist/*.tar.gz
+ python - <<EOF
+ import glob
39
+ import os
40
+ import subprocess
41
+
42
+ # Find wheel and sdist files
43
+ wheels = glob.glob('dist/*.whl')
44
+ sdists = glob.glob('dist/*.tar.gz')
45
46
+ # Try wheel first, then sdist
47
+ if wheels:
48
+ subprocess.check_call(['pip', 'install', wheels[0]])
49
+ elif sdists:
50
+ subprocess.check_call(['pip', 'install', sdists[0]])
51
+ else:
52
+ raise Exception("No wheel or sdist found in dist/")
53
+ EOF
54
55
- name: Verify import & version
56
0 commit comments