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:
parent
a0f07b8b26
commit
20fbc35374
5 changed files with 105 additions and 156 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue