Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Provide pre-compiled Windows wheels on PyPI (build from sdist fails on missing libxml2)

Aperta
#7 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, rust
Ambito
build-system

Direzione di ricerca

Start with the libxml dependency used in src/xsd.rs and the build.rs panic 'Could not find libxml2' that the report quotes, to see how libxml2 is located on Windows. Then look at the build/release workflow that publishes to PyPI and find where wheels are built per platform. Done means a win_amd64 wheel is produced by that workflow and pip install oxml works on Windows without vcpkg or Visual Studio. Choosing between bundling libxml2 and a vcpkg setup in CI is a maintainer decision, so confirm it on the issue first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

Currently on PyPI (e.g., oxml==0.1.6), pre-compiled wheels are provided for:

  • macOS (macosx_11_0_arm64)
  • Linux (manylinux_2_28_x86_64)

However, there are currently no pre-compiled wheels distributed for Windows (win_amd64).

Problem

When users run pip install oxml on a standard Windows environment:

  1. pip falls back to the source distribution (oxml-0.1.6.tar.gz).
  2. The build invokes maturin and Cargo to compile from source.
  3. The internal dependency libxml v0.3.21 (used in src/xsd.rs) attempts to find libxml2 headers/libraries.
  4. On Windows environments without Visual Studio C++ build tools and vcpkg installed/configured for libxml2, the build aborts with:
vcpkg did not succeed in finding libxml2.
thread 'main' panicked at libxml-0.3.21\build.rs:81:5:
Could not find libxml2.
Request / Suggestion

Could you please add Windows (win_amd64) wheels to the build/release workflow (e.g., via maturin or cibuildwheel) when publishing to PyPI? Providing pre-compiled wheels would allow Windows users to install and use oxml out of the box without needing complex C++ / vcpkg build configurations. Thank you!

Lingua principale
Rust
Stelle
3
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.