Skip to content

Commit

Permalink
Include python include patch
Browse files Browse the repository at this point in the history
  • Loading branch information
wvangeit committed Dec 16, 2024
1 parent ad86559 commit ba08b91
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 47 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ get-dakota-src:
git submodule update --init packages/pecos && \
git submodule update --init packages/surfpack && \
git apply ../src_patches/findpython.patch && \
git apply ../src_patches/pythoninclude.patch && \
git apply ../src_patches/boost.patch && \
git apply ../src_patches/dakenv_restart.patch && \
git apply ../src_patches/cstdint_dak_types.patch && \
git apply --whitespace=nowarn ../src_patches/adaptsampl_batch.patch && \
find . \( -name \*.cpp -o -name \*.hpp -o -name \*.c -o -name \*.h \) -exec \
sed -i -E -f ../src_patches/replace_old_macros_numpy.sed {} +
git apply --whitespace=nowarn ../src_patches/adaptsampl_batch.patch
# find . \( -name \*.cpp -o -name \*.hpp -o -name \*.c -o -name \*.h \) -exec \
# sed -i -E -f ../src_patches/replace_old_macros_numpy.sed {} +
cd dakota/packages/external && \
git apply ../../../src_patches/cstdint.patch
21 changes: 0 additions & 21 deletions src_patches/dakota-src.patch

This file was deleted.

22 changes: 0 additions & 22 deletions src_patches/find_python.patch

This file was deleted.

2 changes: 1 addition & 1 deletion src_patches/pythoninclude.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ index 1cce3d2..2670950 100644
- add_definitions("-DDAKOTA_PYTHON_LEGACY")
- list(APPEND EXT_TPL_LIBS ${Python_LIBRARIES})
- endif()
+ # if(DAKOTA_PYTHON_DIRECT_INTERFACE_LEGACY)
+ # if(DAKOTA_PYTHON_DIRECT_INTERFACE_LEGACY)
+ list(APPEND EXT_TPL_INCDIRS ${Python_INCLUDE_DIRS})
+ # add_definitions("-DDAKOTA_PYTHON_LEGACY")
+ list(APPEND EXT_TPL_LIBS ${Python_LIBRARIES})
Expand Down

0 comments on commit ba08b91

Please sign in to comment.