Skip to content

Commit

Permalink
Put make install builds in same place as pip installed library
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Oct 9, 2024
1 parent e34d0b4 commit 23e978a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rosco/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
rosco_dir = os.path.dirname( os.path.abspath(__file__) )
libname = "libdiscon"

lib_path = [os.path.join(rosco_dir, "lib", libname+lib_ext), # pip installs (regular and editable)
lib_path = [os.path.join(rosco_dir, "lib", libname+lib_ext), # pip installs (regular and editable), `make install` also puts it here
os.path.join(os.path.dirname( os.path.dirname( rosco_dir )), "local", "lib", libname+lib_ext), # WEIS library
os.path.join(os.path.dirname( sysconfig.get_path('stdlib') ), libname+lib_ext), # conda installs
os.path.join(os.path.dirname( sysconfig.get_path('stdlib') ), "lib", libname+lib_ext), # conda installs
Expand Down
2 changes: 1 addition & 1 deletion rosco/controller/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,5 @@ set(linuxDefault ${CMAKE_INSTALL_PREFIX} STREQUAL "/usr/local")
set(windowsDefault ${CMAKE_INSTALL_PREFIX} STREQUAL "C:\\Program Files (x86)")
if(${linuxDefault} OR ${windowsDefault})
message("TRUE")
set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/../../")
set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/../")
endif()

0 comments on commit 23e978a

Please sign in to comment.