From 72ad030b1eeca2ce8cd59545671d41150dac97d5 Mon Sep 17 00:00:00 2001
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
Date: Thu, 23 Dec 2021 08:49:07 +0000
Subject: [PATCH 1/4] Disable python setups
---
doc/CMakeLists.txt | 12 ++++++------
extras/ConnPlotter/CMakeLists.txt | 16 ++++++++--------
pynest/CMakeLists.txt | 30 +++++++++++++++---------------
3 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index f6b694a64..4c883f34d 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -45,12 +45,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}/extras/help_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/extras/ConnPlotter/CMakeLists.txt b/extras/ConnPlotter/CMakeLists.txt
index 1f7c2b32d..56a0374c6 100644
--- a/extras/ConnPlotter/CMakeLists.txt
+++ b/extras/ConnPlotter/CMakeLists.txt
@@ -18,14 +18,14 @@
# along with NEST. If not, see <http://www.gnu.org/licenses/>.
if ( HAVE_PYTHON )
- install( CODE "execute_process(
- COMMAND ${PYTHON} setup.py build --build-base=${CMAKE_CURRENT_BINARY_DIR}/build
- install --prefix=${CMAKE_INSTALL_PREFIX}
- --install-lib=${CMAKE_INSTALL_PREFIX}/${PYEXECDIR}
- --install-scripts=${CMAKE_INSTALL_FULL_BINDIR}
- --install-data=${CMAKE_INSTALL_FULL_DATADIR}
- WORKING_DIRECTORY \"${CMAKE_CURRENT_SOURCE_DIR}\")"
- )
+ #install( CODE "execute_process(
+ #COMMAND ${PYTHON} setup.py build --build-base=${CMAKE_CURRENT_BINARY_DIR}/build
+ # install --prefix=${CMAKE_INSTALL_PREFIX}
+ # --install-lib=${CMAKE_INSTALL_PREFIX}/${PYEXECDIR}
+ # --install-scripts=${CMAKE_INSTALL_FULL_BINDIR}
+ # --install-data=${CMAKE_INSTALL_FULL_DATADIR}
+ # WORKING_DIRECTORY \"${CMAKE_CURRENT_SOURCE_DIR}\")"
+ # )
install( FILES examples/connplotter_tutorial.py
DESTINATION ${CMAKE_INSTALL_DOCDIR}/examples/ConnPlotter
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.33.1