Installation¶
For Users¶
Just install from PyPI:
pip install pygixml
That’s it. No build tools required — pre-compiled wheels are provided for Windows, Linux, and macOS.
Verify the installation:
import pygixml
print(f"pygixml version: {pygixml.__version__}")
For Developers¶
To contribute to pygixml or build from source, you need a C++ compiler, CMake, and Cython.
Clone the repository
git clone https://github.com/MohammadRaziei/pygixml.git cd pygixml git submodule update --init --recursive
Install dev dependencies
pip install -r requirements-dev.txt
This pulls in Cython, scikit-build-core, pytest, Sphinx, and the documentation toolchain.
Configure and build
cmake -S . -B build cmake --build build
This compiles the Cython extension and installs it into
build/python/install/.
Available CMake Targets¶
Run cmake --build build --target help to see all available targets:
Target |
Description |
|---|---|
|
Build the pygixml Cython extension |
|
Run the pytest test suite |
|
Run tests with code coverage |
|
Build the Sphinx documentation |
|
Run the parsing benchmark suite |
|
Run the full benchmark (parsing + memory + package size) |
|
Run benchmarks and generate chart visualizations |
Examples:
# Build
cmake --build build
# Run tests
cmake --build build --target test_python
# Build documentation
cmake --build build --target sphinx_docs
# Run benchmarks
cmake --build build --target run_full_benchmarks
Platform Prerequisites¶
Ubuntu / Debian
sudo apt-get install build-essential cmake python3-dev
CentOS / RHEL
sudo yum groupinstall "Development Tools"
sudo yum install cmake python3-devel
macOS
xcode-select --install
brew install cmake
Windows
Install Visual Studio Build Tools with the “Desktop development with C++” workload, or install CMake from https://cmake.org/download/.