1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-10-03 11:01:30 +00:00

Python: Refactor the build of the bindings

When building the binding, link the dynamic
C library as built by `make` instead of linking
the system-installed C library. This simplifies
packaging in Linux distributions and also the
build of the live docs.
This commit is contained in:
Pavol Žáčik 2024-09-01 19:37:37 +02:00 committed by The Tumultuous Unicorn Of Darkness
commit 20fbc35374
5 changed files with 105 additions and 156 deletions

View file

@ -14,13 +14,10 @@ build:
pre_install:
- libtoolize
- autoreconf --install
- mkdir ./install
- ./configure --prefix=`pwd`/install
- ./configure
- make
- make install
- pip install cffi
- python ./python/src/libcpuid/_ffi_build_rtd.py ./libcpuid/libcpuid.h ./install
- python python/src/libcpuid/_ffi_build.py --runtime-link
sphinx:
configuration: python/docs/conf.py