Skip to content

Commit 45117a9

Browse files
committed
fix: ensure manylinux linux wheels
1 parent ae61ea9 commit 45117a9

2 files changed

Lines changed: 33 additions & 27 deletions

File tree

bindings/python/Dockerfile.build

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -188,22 +188,28 @@ RUN if [ -n "${BUILD_VERSION}" ]; then \
188188
sed -i 's|^name = .*|name = "'"${PACKAGE_NAME}"'"|' pyproject.toml && \
189189
sed -i 's|^version = .*|version = "'"${ARCADEDB_VERSION}"'"|' pyproject.toml && \
190190
sed -i 's|^description = .*|description = "'"${PACKAGE_DESCRIPTION}"'"|' pyproject.toml && \
191-
python3 -m build --wheel && \
192191
if echo "${TARGET_PLATFORM}" | grep -q '^linux-'; then \
193192
if [ "${TARGET_PLATFORM}" = "linux-x64" ]; then \
194-
AUDITWHEEL_PLAT="manylinux_2_35_x86_64"; \
193+
WHEEL_PLAT="manylinux_2_35_x86_64"; \
195194
elif [ "${TARGET_PLATFORM}" = "linux-arm64" ]; then \
196-
AUDITWHEEL_PLAT="manylinux_2_35_aarch64"; \
195+
WHEEL_PLAT="manylinux_2_35_aarch64"; \
197196
else \
198-
AUDITWHEEL_PLAT=""; \
197+
WHEEL_PLAT=""; \
199198
fi; \
200-
if [ -n "${AUDITWHEEL_PLAT}" ]; then \
201-
echo "🔧 Repairing wheel for ${AUDITWHEEL_PLAT}..."; \
202-
mkdir -p /build/dist-repaired; \
203-
auditwheel repair /build/dist/*.whl --plat "${AUDITWHEEL_PLAT}" -w /build/dist-repaired; \
204-
rm -f /build/dist/*.whl; \
205-
mv /build/dist-repaired/*.whl /build/dist/; \
206-
rmdir /build/dist-repaired; \
199+
if [ -n "${WHEEL_PLAT}" ]; then \
200+
echo "🏷️ Building wheel with platform tag: ${WHEEL_PLAT}"; \
201+
python3 -m build --wheel --config-setting=--build-option=--plat-name=${WHEEL_PLAT}; \
202+
else \
203+
python3 -m build --wheel; \
204+
fi; \
205+
else \
206+
python3 -m build --wheel; \
207+
fi && \
208+
if echo "${TARGET_PLATFORM}" | grep -q '^linux-'; then \
209+
if [ -n "${WHEEL_PLAT}" ] && ! ls /build/dist/*${WHEEL_PLAT}*.whl 1> /dev/null 2>&1; then \
210+
echo "❌ Expected manylinux wheel (${WHEEL_PLAT}) not found"; \
211+
ls -lh /build/dist; \
212+
exit 1; \
207213
fi; \
208214
fi && \
209215
echo "✅ Wheel built successfully!" && \

bindings/python/docs/examples/02_social_network_graph.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -289,28 +289,28 @@ with arcadedb.open_database("./social_network_db") as db:
289289
## Try It Yourself
290290

291291
1. **Run the example:**
292-
```bash
293-
# Important: Navigate to examples directory first
294-
cd bindings/python/examples
295-
python 02_social_network_graph.py
296-
```
292+
```bash
293+
# Important: Navigate to examples directory first
294+
cd bindings/python/examples
295+
python 02_social_network_graph.py
296+
```
297297

298298
2. **Explore the database:**
299-
- Database files are created in `./my_test_databases/social_network_db/`
300-
- Inspect the console output to understand each operation
301-
- Try modifying the sample data in the code
299+
- Database files are created in `./my_test_databases/social_network_db/`
300+
- Inspect the console output to understand each operation
301+
- Try modifying the sample data in the code
302302

303303
3. **Experiment with queries:**
304-
- Modify the Cypher queries in `demonstrate_cypher_queries()`
305-
- Add new relationship types (WORKS_WITH, LIVES_NEAR)
306-
- Try different traversal patterns and depths
307-
- Add relationship scoring (strength, trust level)
304+
- Modify the Cypher queries in `demonstrate_cypher_queries()`
305+
- Add new relationship types (WORKS_WITH, LIVES_NEAR)
306+
- Try different traversal patterns and depths
307+
- Add relationship scoring (strength, trust level)
308308
309309
4. **Scale it up:**
310-
- Import larger datasets from CSV files
311-
- Add more vertex types (Company, Location, Interest)
312-
- Implement recommendation algorithms
313-
- Add temporal aspects (friendship start/end dates)
310+
- Import larger datasets from CSV files
311+
- Add more vertex types (Company, Location, Interest)
312+
- Implement recommendation algorithms
313+
- Add temporal aspects (friendship start/end dates)
314314
315315
## Key Implementation Notes
316316

0 commit comments

Comments
 (0)