Skip to content

Commit

Permalink
Wrong python found by fit2x
Browse files Browse the repository at this point in the history
  • Loading branch information
tpeulen committed Dec 8, 2024
1 parent a61191c commit 74620af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
24 changes: 11 additions & 13 deletions conda-recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,18 @@ cd ../../..

# Build fit2x
cd modules/fit2x
git switch master && git pull origin master
git switch master
rm -rf build && mkdir build && cd build
cmake -S .. -B . \
-DCMAKE_CXX_COMPILER="${CXX}" \
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
-DCMAKE_PREFIX_PATH="$PREFIX" \
-DBUILD_PYTHON_INTERFACE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY="$SP_DIR" \
-DCMAKE_SWIG_OUTDIR="$SP_DIR" \
-DPython_ROOT_DIR="${PREFIX}/bin" \
-DPython_EXECUTABLE="${PYTHON}"
-G Ninja
ninja install -j ${CPU_COUNT}
cmake \
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
-DCMAKE_PREFIX_PATH="$PREFIX" \
-DBUILD_PYTHON_INTERFACE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY="$SP_DIR" \
-DCMAKE_SWIG_OUTDIR="$SP_DIR" \
-DPython_ROOT_DIR="${PREFIX}/bin" \
..
make && make install
cd ../../..


Expand Down
3 changes: 2 additions & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ build:
{% endfor %}

requirements:
host:
build:
- {{ compiler('cxx') }}
host:
- git
- cmake
- make # [not win]
Expand Down

0 comments on commit 74620af

Please sign in to comment.