forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
visit: add v3.4.0, v3.4.1 (spack#47161)
* Visit: Add new versions 3.4.0 and 3.4.1 * Adios2: Restrict python, 3.11 doesn't not work for older Adios2 * VisIt: Set the VTK_VERSION for @3.4: Older versions of VTK used the VTK_{MAJOR, MINOR}_VERSION variables for VTK detection. VisIt >= 3.4 uses the full string VTK_VERSION. * CI: Don't build llvm-amdgpu for non-HIP stack * VisIt: v3.4.1 handles newer Adios2 correctly * Visit: Add missing links in HDF5, set correct VTK version configuration parameter * VisIt: Add py-pip requirement and patch visit with configuration changes * HDF5 symlinks move when inside of callback * VisIt ninja install fails with python module. Using make does not * VisIt 3.4 has a high minimum cmake requirement * HDF5: Early return when not mpi for mpi symlinks * HDF5: Use platform agnostic method for creating legacy compatible MPI symlinks * Fix VISIT_VTK_VERSION handling for 8.2.1a hack
- Loading branch information
1 parent
aa2c18e
commit 4f9aa60
Showing
5 changed files
with
136 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
var/spack/repos/builtin/packages/visit/19958-enable-python-and-check-pip.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
diff --git a/src/CMake/FindVisItPython.cmake b/src/CMake/FindVisItPython.cmake | ||
index f8fca9f730..76ab1f54ca 100644 | ||
--- a/src/CMake/FindVisItPython.cmake | ||
+++ b/src/CMake/FindVisItPython.cmake | ||
@@ -280,6 +280,13 @@ if(PYTHONINTERP_FOUND) | ||
endif() | ||
endif() | ||
|
||
+ # Ensure pip module is avaiable | ||
+ execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c" "import sys; import pip; sys.stdout.write(pip.__version__)" | ||
+ OUTPUT_VARIABLE PYTHON_PIP_VERSION | ||
+ ERROR_VARIABLE ERROR_FINDING_PYTHON_PIP_MODULE | ||
+ COMMAND_ERROR_IS_FATAL ANY) | ||
+ message(STATUS "PYTHON_PIP_VERSION: ${PYTHON_PIP_VERSION}") | ||
+ | ||
if(NOT EXISTS ${PYTHON_LIBRARY}) | ||
message(FATAL_ERROR "Failed to find main library using PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}") | ||
endif() | ||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index 422bef895f..dacbaf0552 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -1226,15 +1226,17 @@ if(NOT VISIT_DBIO_ONLY) | ||
endif() | ||
endif() | ||
|
||
+# Configure python CLI extensions | ||
+if(VISIT_PYTHON_SCRIPTING AND PYTHONLIBS_FOUND) | ||
+ if(NOT VISIT_STATIC) | ||
+ add_subdirectory(visitpy) | ||
+ endif() | ||
+endif() | ||
+ | ||
if(NOT VISIT_SERVER_COMPONENTS_ONLY AND NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY) | ||
add_subdirectory(vtkqt) | ||
add_subdirectory(winutil) | ||
add_subdirectory(gui) | ||
- if(VISIT_PYTHON_SCRIPTING AND PYTHONLIBS_FOUND) | ||
- if(NOT VISIT_STATIC) | ||
- add_subdirectory(visitpy) | ||
- endif() | ||
- endif() | ||
# always add java subdir, so code gen targets can be active even | ||
# if java is not enabled | ||
add_subdirectory(java) | ||
diff --git a/src/viewer/CMakeLists.txt b/src/viewer/CMakeLists.txt | ||
index e47b0f271a..be9b2486ca 100644 | ||
--- a/src/viewer/CMakeLists.txt | ||
+++ b/src/viewer/CMakeLists.txt | ||
@@ -11,9 +11,9 @@ | ||
|
||
ADD_SUBDIRECTORY(rpc) | ||
ADD_SUBDIRECTORY(core) | ||
+ADD_SUBDIRECTORY(proxy) | ||
|
||
IF(NOT VISIT_SERVER_COMPONENTS_ONLY AND NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY) | ||
- ADD_SUBDIRECTORY(proxy) | ||
ADD_SUBDIRECTORY(subjectproxy) | ||
IF(NOT VISIT_STATIC) | ||
# "main" is handled from the top level in the static case so it can be |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters