Skip to content

Commit b3c3379

Browse files
committed
Change CmakeList for python3.12+
Signed-off-by: Nicu Siderias <nicu.siderias@analog.com>
1 parent 7c5caa5 commit b3c3379

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bindings/python/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ add_custom_target(${PROJECT_NAME}py ALL DEPENDS _${PROJECT_NAME} WORKING_DIRECTO
207207

208208
if(NOT SKIP_INSTALL_ALL)
209209
install(CODE "execute_process(WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
210-
COMMAND ${PYTHON_EXECUTABLE_LIB_VERSION} ${SETUP_PY} install
210+
COMMAND ${PYTHON_EXECUTABLE_LIB_VERSION} -m pip install
211211
--record=${CMAKE_BINARY_DIR}/install_manifest_py.txt
212212
--root=\$ENV{DESTDIR}/ --prefix=${CMAKE_INSTALL_PREFIX})")
213213
endif()

bindings/python/setup.py.cmakein

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ else:
5858
description = """Python bindings for the C/C++ libm2k""",
5959
url='https://github.com/analogdevicesinc/libm2k',
6060
py_modules = ["${PROJECT_NAME}"],
61-
packages=[''],
61+
# packages=[''],
6262
package_data={'': ['_${PROJECT_NAME}.so', '_${PROJECT_NAME}.pyd']},
6363
classifiers=[
6464
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)