Skip to content

Commit

Permalink
recipe: remove useless lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent committed Aug 21, 2024
1 parent 716c8d6 commit 1067a31
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@
mkdir build
cd build

export BUILD_NUMPY_INCLUDE_DIRS=$( $PYTHON -c "import numpy; print (numpy.get_include())")
export TARGET_NUMPY_INCLUDE_DIRS=$SP_DIR/numpy/core/include

echo $BUILD_NUMPY_INCLUDE_DIRS
echo $TARGET_NUMPY_INCLUDE_DIRS

if [[ $CONDA_BUILD_CROSS_COMPILATION == 1 ]]; then
echo "Copying files from $BUILD_NUMPY_INCLUDE_DIRS to $TARGET_NUMPY_INCLUDE_DIRS"
mkdir -p $TARGET_NUMPY_INCLUDE_DIRS
cp -r $BUILD_NUMPY_INCLUDE_DIRS/numpy $TARGET_NUMPY_INCLUDE_DIRS
export GENERATE_PYTHON_STUBS=0
fi

cmake .. \
${CMAKE_ARGS} \
-DCMAKE_BUILD_TYPE=Release \
Expand All @@ -25,10 +12,3 @@ cmake .. \

make -j${CPU_COUNT}
make install

if [[ $CONDA_BUILD_CROSS_COMPILATION == 1 ]]; then
echo $BUILD_PREFIX
echo $PREFIX
sed -i.back 's|'"$BUILD_PREFIX"'|'"$PREFIX"'|g' $PREFIX/lib/cmake/pinocchio/pinocchioTargets.cmake
rm $PREFIX/lib/cmake/pinocchio/pinocchioTargets.cmake.back
fi

0 comments on commit 1067a31

Please sign in to comment.