mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 00:00:56 +00:00
ci: use python available from PATH to retrieve include
One less place to update on version change.
This commit is contained in:
@@ -182,16 +182,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Build ifcopenshell
|
- name: Build ifcopenshell
|
||||||
run: |
|
run: |
|
||||||
echo $Python3_ROOT_DIR
|
which python
|
||||||
echo ${{ env.pythonLocation }}
|
|
||||||
|
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_PREFIX_PATH=/usr \
|
-DCMAKE_PREFIX_PATH=/usr \
|
||||||
-DCMAKE_SYSTEM_PREFIX_PATH=/usr \
|
-DCMAKE_SYSTEM_PREFIX_PATH=/usr \
|
||||||
-DPYTHON_EXECUTABLE:FILEPATH=${{ env.pythonLocation }}/bin/python \
|
-DPYTHON_EXECUTABLE:FILEPATH=$(which python) \
|
||||||
-DPYTHON_INCLUDE_DIR:PATH=${{ env.pythonLocation }}/include/python3.11 \
|
-DPYTHON_INCLUDE_DIR:PATH=$(python -c "import sysconfig; print(sysconfig.get_path('include'))") \
|
||||||
-DUSE_MMAP=On \
|
-DUSE_MMAP=On \
|
||||||
-DUSE_CCACHE=ON \
|
-DUSE_CCACHE=ON \
|
||||||
-DBUILD_SHARED_LIBS=${{ matrix.build_shared_libs }} \
|
-DBUILD_SHARED_LIBS=${{ matrix.build_shared_libs }} \
|
||||||
|
|||||||
Reference in New Issue
Block a user