From c6ecceeb383850b22b2588057b413815a59def32 Mon Sep 17 00:00:00 2001
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
Date: Fri, 13 Jan 2023 10:48:21 +0000
Subject: [PATCH 1/6] Disable python setups
---
doc/CMakeLists.txt | 12 ++++++------
pynest/CMakeLists.txt | 30 +++++++++++++++---------------
2 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 2ad7d764b..622b12666 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -48,12 +48,12 @@ if ( NOT CMAKE_CROSSCOMPILING )
# Update the global help index to include all help files in
# the global installation directory for documentation.
- install( CODE
- "execute_process(
- COMMAND ${Python_EXECUTABLE} -B generate_helpindex.py \"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DOCDIR}\"
- WORKING_DIRECTORY \"${PROJECT_SOURCE_DIR}/doc/slihelp_generator\"
- )"
- )
+ #install( CODE
+ # "execute_process(
+ # COMMAND ${Python_EXECUTABLE} -B generate_helpindex.py \"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DOCDIR}\"
+ # WORKING_DIRECTORY \"${PROJECT_SOURCE_DIR}/extras/help_generator\"
+ # )"
+ # )
endif ()
diff --git a/pynest/CMakeLists.txt b/pynest/CMakeLists.txt
index 1815f7870..f3b0218c4 100644
--- a/pynest/CMakeLists.txt
+++ b/pynest/CMakeLists.txt
@@ -79,21 +79,21 @@ if ( HAVE_PYTHON )
PATTERN "versionchecker.py.in" EXCLUDE
)
install( TARGETS pynestkernel DESTINATION ${PYEXECDIR}/nest/ )
- install( CODE "
- execute_process(
- COMMAND ${PYTHON} ${CMAKE_CURRENT_BINARY_DIR}/setup.py install_egg_info
- --install-dir=${CMAKE_INSTALL_PREFIX}/${PYEXECDIR}
- WORKING_DIRECTORY \"${CMAKE_INSTALL_PREFIX}/${PYEXECDIR}\"
- )
- # Use Python's standard library `pkg_resources` module to find
- # the install requirements of `nest` as specified in `setup.py`.
- # Then feed them into the stdin pipe of `pip install`.
- execute_process(
- COMMAND ${PYTHON} -c \"import pkg_resources as pkg; print('\\\\n'.join(str(r) for r in pkg.get_distribution('nest-simulator').requires()))\"
- COMMAND ${PYTHON} -m pip install -r /dev/stdin
- )
- "
- )
+ #install( CODE "
+ # execute_process(
+ # COMMAND ${PYTHON} ${CMAKE_CURRENT_BINARY_DIR}/setup.py install_egg_info
+ # --install-dir=${CMAKE_INSTALL_PREFIX}/${PYEXECDIR}
+ # WORKING_DIRECTORY \"${CMAKE_INSTALL_PREFIX}/${PYEXECDIR}\"
+ # )
+ # # Use Python's standard library `pkg_resources` module to find
+ # # the install requirements of `nest` as specified in `setup.py`.
+ # # Then feed them into the stdin pipe of `pip install`.
+ # execute_process(
+ # COMMAND ${PYTHON} -c \"import pkg_resources as pkg; print('\\\\n'.join(str(r) for r in pkg.get_distribution('nest-simulator').requires()))\"
+ # COMMAND ${PYTHON} -m pip install -r /dev/stdin
+ # )
+ # "
+ #)
install( DIRECTORY examples/
DESTINATION ${CMAKE_INSTALL_DOCDIR}/examples/pynest
--
2.39.0