Skip to content

Commit 5f42cdf

Browse files
Merge pull request #1 from merlimat/remove-python-client
Removing Python client client which has been moved to https://github.com/apache/pulsar-client-python
2 parents 4a864f2 + 034c710 commit 5f42cdf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+0
-8230
lines changed

CMakeLists.txt

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ MESSAGE(STATUS "BUILD_STATIC_LIB: " ${BUILD_STATIC_LIB})
5656
option(BUILD_TESTS "Build tests" ON)
5757
MESSAGE(STATUS "BUILD_TESTS: " ${BUILD_TESTS})
5858

59-
option(BUILD_PYTHON_WRAPPER "Build Pulsar Python wrapper" ON)
60-
MESSAGE(STATUS "BUILD_PYTHON_WRAPPER: " ${BUILD_PYTHON_WRAPPER})
61-
6259
option(BUILD_WIRESHARK "Build Pulsar Wireshark dissector" OFF)
6360
MESSAGE(STATUS "BUILD_WIRESHARK: " ${BUILD_WIRESHARK})
6461

@@ -265,33 +262,6 @@ endif()
265262

266263
find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENTS})
267264

268-
if (BUILD_PYTHON_WRAPPER)
269-
find_package(PythonLibs REQUIRED)
270-
MESSAGE(STATUS "PYTHON: " ${PYTHONLIBS_VERSION_STRING})
271-
272-
string(REPLACE "." ";" PYTHONLIBS_VERSION_NO_LIST ${PYTHONLIBS_VERSION_STRING})
273-
list(GET PYTHONLIBS_VERSION_NO_LIST 0 PYTHONLIBS_VERSION_MAJOR)
274-
list(GET PYTHONLIBS_VERSION_NO_LIST 1 PYTHONLIBS_VERSION_MINOR)
275-
set(BOOST_PYTHON_NAME_POSTFIX ${PYTHONLIBS_VERSION_MAJOR}${PYTHONLIBS_VERSION_MINOR})
276-
# For python3 the lib name is boost_python3
277-
set(BOOST_PYTHON_NAME_LIST python37;python38;python39;python310;python3;python3-mt;python-py${BOOST_PYTHON_NAME_POSTFIX};python${BOOST_PYTHON_NAME_POSTFIX}-mt;python${BOOST_PYTHON_NAME_POSTFIX})
278-
279-
foreach (BOOST_PYTHON_NAME IN LISTS BOOST_PYTHON_NAME_LIST)
280-
find_package(Boost QUIET COMPONENTS ${BOOST_PYTHON_NAME})
281-
if (${Boost_FOUND})
282-
set(BOOST_PYTHON_NAME_FOUND ${BOOST_PYTHON_NAME})
283-
break()
284-
endif()
285-
endforeach()
286-
287-
if (NOT ${Boost_FOUND})
288-
MESSAGE(FATAL_ERROR "Could not find Boost Python library")
289-
endif ()
290-
291-
MESSAGE(STATUS "BOOST_PYTHON_NAME_FOUND: " ${BOOST_PYTHON_NAME_FOUND})
292-
find_package(Boost REQUIRED COMPONENTS ${BOOST_PYTHON_NAME_FOUND})
293-
endif (BUILD_PYTHON_WRAPPER)
294-
295265
find_package(OpenSSL REQUIRED)
296266

297267
if (BUILD_TESTS)
@@ -305,8 +275,6 @@ if (USE_LOG4CXX)
305275
endif (USE_LOG4CXX)
306276

307277
if (NOT APPLE AND NOT MSVC)
308-
# we don't set options below to build _pulsar.so
309-
set(CMAKE_CXX_FLAGS_PYTHON "${CMAKE_CXX_FLAGS}")
310278
# Hide all non-exported symbols to avoid conflicts
311279
add_compile_options(-fvisibility=hidden)
312280
if (CMAKE_COMPILER_IS_GNUCC)
@@ -429,10 +397,6 @@ if (BUILD_TESTS)
429397
add_subdirectory(tests)
430398
endif()
431399

432-
if (BUILD_PYTHON_WRAPPER)
433-
add_subdirectory(python)
434-
endif ()
435-
436400
if (BUILD_WIRESHARK)
437401
add_subdirectory(wireshark)
438402
endif()
@@ -448,7 +412,6 @@ add_custom_target(format ${BUILD_SUPPORT_DIR}/run_clang_format.py
448412
${CMAKE_SOURCE_DIR}/examples
449413
${CMAKE_SOURCE_DIR}/tests
450414
${CMAKE_SOURCE_DIR}/include
451-
${CMAKE_SOURCE_DIR}/python/src
452415
${CMAKE_SOURCE_DIR}/wireshark)
453416

454417
# `make check-format` option (for CI test)
@@ -461,5 +424,4 @@ add_custom_target(check-format ${BUILD_SUPPORT_DIR}/run_clang_format.py
461424
${CMAKE_SOURCE_DIR}/examples
462425
${CMAKE_SOURCE_DIR}/tests
463426
${CMAKE_SOURCE_DIR}/include
464-
${CMAKE_SOURCE_DIR}/python/src
465427
${CMAKE_SOURCE_DIR}/wireshark)

docker-build-python3.9.sh

Lines changed: 0 additions & 40 deletions
This file was deleted.

docker/build-wheel-file-within-docker.sh

Lines changed: 0 additions & 46 deletions
This file was deleted.

docker/build-wheels.sh

Lines changed: 0 additions & 82 deletions
This file was deleted.

docker/create-images.sh

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)