Skip to content

Commit 2373248

Browse files
committed
fix: Universal pipeline
1 parent cdf685c commit 2373248

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/build-wheel.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ jobs:
7272
rm -f /io/dist/*-linux_*.whl
7373
"
7474
75+
# Install twine to verify wheels
76+
pip install twine
77+
7578
# Verify the wheel was built
7679
echo "Contents of dist directory:"
7780
ls -la dist/
@@ -94,6 +97,7 @@ jobs:
9497
pip install -r requirements.txt
9598
pip install -r requirements-dev.txt
9699
pip install wheel
100+
pip install twine
97101
98102
# Download native artifacts
99103
Write-Host "Starting artifact download process..."
@@ -121,6 +125,7 @@ jobs:
121125
pip install -r requirements.txt
122126
pip install -r requirements-dev.txt
123127
pip install wheel
128+
pip install twine
124129
125130
# Download native artifacts
126131
python scripts/download_artifacts.py $C2PA_VERSION

src/c2pa/lib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def get_platform_identifier() -> str:
4545
elif system == "windows":
4646
return "x86_64-pc-windows-msvc"
4747
elif system == "linux":
48-
if _get_architecture() in [CPUArchitecture.ARM64, CPUArchitecture.AARCH64]:
48+
if _get_architecture() in [CPUArchitecture.ARM64.value, CPUArchitecture.AARCH64.value]:
4949
return "aarch64-unknown-linux-gnu"
5050
return "x86_64-unknown-linux-gnu"
5151
else:
@@ -62,9 +62,9 @@ def _get_architecture() -> str:
6262
if sys.platform == "darwin":
6363
# On macOS, we need to check if we're running under Rosetta
6464
if platform.processor() == 'arm':
65-
return CPUArchitecture.ARM64
65+
return CPUArchitecture.ARM64.value
6666
else:
67-
return CPUArchitecture.ARM64.X86_64
67+
return CPUArchitecture.X86_64.value
6868
elif sys.platform == "linux":
6969
return platform.machine()
7070
elif sys.platform == "win32":

0 commit comments

Comments
 (0)