diff --git a/recipe/build.sh b/recipe/build.sh index 17b75e4..7625532 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -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 \ @@ -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