Skip to content

Commit

Permalink
Merge pull request #1030 from JJL772/pr-fish-env
Browse files Browse the repository at this point in the history
Add setup_rogue.fish for fish shell
  • Loading branch information
ruck314 authored Dec 4, 2024
2 parents bd5f1f2 + 0ad66a5 commit be66f5b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ configure_file(${PROJECT_SOURCE_DIR}/templates/setup_rogue.csh.in
${PROJECT_BINARY_DIR}/setup_rogue.csh @ONLY)
configure_file(${PROJECT_SOURCE_DIR}/templates/setup_rogue.sh.in
${PROJECT_BINARY_DIR}/setup_rogue.sh @ONLY)
configure_file(${PROJECT_SOURCE_DIR}/templates/setup_rogue.fish.in
${PROJECT_BINARY_DIR}/setup_rogue.fish @ONLY)

# Create the python install script
configure_file(${PROJECT_SOURCE_DIR}/templates/setup.py.in
Expand All @@ -357,7 +359,7 @@ install(FILES ${PROJECT_BINARY_DIR}/RogueConfig.cmake DESTINATION ${CMAKE_INSTAL

# Copy setup files for local or custom
if ((${ROGUE_INSTALL} STREQUAL "custom") OR (${ROGUE_INSTALL} STREQUAL "local"))
install(FILES ${PROJECT_BINARY_DIR}/setup_rogue.sh ${PROJECT_BINARY_DIR}/setup_rogue.csh DESTINATION ${ROGUE_DIR})
install(FILES ${PROJECT_BINARY_DIR}/setup_rogue.sh ${PROJECT_BINARY_DIR}/setup_rogue.csh ${PROJECT_BINARY_DIR}/setup_rogue.fish DESTINATION ${ROGUE_DIR})
endif()

# Install header files for non local installs
Expand Down
24 changes: 24 additions & 0 deletions templates/setup_rogue.fish.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

if test -z "$LD_LIBRARY_PATH"
set LD_LIBRARY_PATH ""
end

if test -z "$PYTHONPATH"
set PYTHONPATH ""
end

# Rogue directory
export ROGUE_DIR=@ROGUE_DIR@
export ROGUE_VERSION=@ROGUE_VERSION@

# Setup python path
export PYTHONPATH={$ROGUE_DIR}/python:{$PYTHONPATH}

# Setup library path
export LD_LIBRARY_PATH={$ROGUE_DIR}/lib:{$LD_LIBRARY_PATH}

# PYDM environment
export PYQTDESIGNERPATH={$ROGUE_DIR}/python/pyrogue/pydm:{$PYQTDESIGNERPATH}
export PYDM_DATA_PLUGINS_PATH={$ROGUE_DIR}/python/pyrogue/pydm/data_plugins
export PYDM_TOOLS_PATH={$ROGUE_DIR}/python/pyrogue/pydm/tools

0 comments on commit be66f5b

Please sign in to comment.