Ament build failed on Mac

I tried to build ros2 from source but failed.

Process package 'rosidl_generator_py' with context:
--------------------------------------------------------------------------------
 source_space => /Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/src/ros2/rosidl/rosidl_generator_py
  build_space => /Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/build/rosidl_generator_py
install_space => /Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install
   make_flags => -j8, -l8
  build_tests => True
--------------------------------------------------------------------------------
+++ Building 'rosidl_generator_py'
Running cmake because arguments have changed.
==> '. /Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/build/rosidl_generator_py/cmake__build.sh && /usr/local/bin/cmake /Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/src/ros2/rosidl/rosidl_generator_py -DBUILD_TESTING=1 -DCMAKE_INSTALL_PREFIX=/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install -G Unix Makefiles' in '/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/build/rosidl_generator_py'
-- The C compiler identification is AppleClang 9.0.0.9000039
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ament_cmake: 0.4.0 (/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install/share/ament_cmake/cmake)
-- Found PythonInterp: /Users/qiao/anaconda3/bin/python3 (found suitable version "3.6.3", minimum required is "3")
-- Using PYTHON_EXECUTABLE: /Users/qiao/anaconda3/bin/python3
-- Found ament_cmake_pytest: 0.4.0 (/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install/share/ament_cmake_pytest/cmake)
-- Found rosidl_cmake: 0.4.0 (/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install/share/rosidl_cmake/cmake)
-- Found rosidl_generator_c: 0.4.0 (/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install/share/rosidl_generator_c/cmake)
-- Found ament_lint_auto: 0.4.0 (/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install/share/ament_lint_auto/cmake)
-- Found rmw_implementation_cmake: 0.4.0 (/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install/share/rmw_implementation_cmake/cmake)
-- Using RMW implementation 'rmw_fastrtps_cpp' as default
-- Found rmw_fastrtps_cpp: 0.4.0 (/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install/share/rmw_fastrtps_cpp/cmake)
-- Found fastrtps_cmake_module: 0.4.0 (/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install/share/fastrtps_cmake_module/cmake)
-- Found FastRTPS: /Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install/include
-- Using single matching rosidl_typesupport_c: rosidl_typesupport_introspection_c
-- Found PythonInterp: /Users/qiao/anaconda3/bin/python3 (found suitable version "3.6.3", minimum required is "3.5")
-- Using PythonExtra_INCLUDE_DIRS: /Users/qiao/anaconda3/include/python3.6m;/Users/qiao/anaconda3/include/python3.6m
-- Using PythonExtra_LIBRARIES: PYTHON_LIBRARY-NOTFOUND
CMake Error at /usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find PythonExtra (missing: PythonExtra_LIBRARIES)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install/share/python_cmake_module/cmake/Modules/FindPythonExtra.cmake:213 (find_package_handle_standard_args)
  cmake/rosidl_generator_py_generate_interfaces.cmake:24 (find_package)
  /Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:38 (include)
  /Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:169 (ament_execute_extensions)
  CMakeLists.txt:60 (rosidl_generate_interfaces)


-- Configuring incomplete, errors occurred!
See also "/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/build/rosidl_generator_py/CMakeFiles/CMakeOutput.log".

<== Command '. /Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/build/rosidl_generator_py/cmake__build.sh && /usr/local/bin/cmake /Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/src/ros2/rosidl/rosidl_generator_py -DBUILD_TESTING=1 -DCMAKE_INSTALL_PREFIX=/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install -G 'Unix Makefiles'' failed in '/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/build/rosidl_generator_py' with exit code '1'
<== Command '. /Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/build/rosidl_generator_py/cmake__build.sh && /usr/local/bin/cmake /Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/src/ros2/rosidl/rosidl_generator_py -DBUILD_TESTING=1 -DCMAKE_INSTALL_PREFIX=/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/install -G 'Unix Makefiles'' failed in '/Users/qiao/Tools/docker/opengrok/opengrok_src/ros2_ws/build/rosidl_generator_py' with exit code '1'

Please Help, and please let me know if I should provide additional information.

My default python3 set to Anaconda and the proper packages are missing in anaconda environments. I guess it messed up everything.