Skip to content

Commit

Permalink
feat: using optframe 5.0.16
Browse files Browse the repository at this point in the history
  • Loading branch information
igormcoelho committed Nov 13, 2023
1 parent a1e5129 commit 4dfb873
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ clean:
load_thirdparty:
git submodule update --init --recursive
git pull --recurse-submodules
pip install numpy # for demos
12 changes: 9 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ def run(self):
# git fetch
# git checkout origin/master -ft
subprocess.check_call(
['git', 'clone', '--depth', '1', '--branch', '5.0.15', 'https://github.com/optframe/optframe', 'optframe-git'])
['git', 'clone', '--depth', '1', '--branch', '5.0.16', 'https://github.com/optframe/optframe', 'optframe-git'])
subprocess.check_call(
['ls', '-la'])

# ===== check that clone() was done fine ======
# subprocess.check_call(
# ['ls', '-la', 'optframe-git'])
Expand Down Expand Up @@ -83,15 +86,18 @@ def get_ext_filename(self, ext_name):
ext_modules=[
CTypesExtension(
"optframe.optframe_lib",
["optframe/optframe_lib.cpp"],
["optframe/optframe_lib.cpp", "optframe-git/src/OptFrameLib/OptFrameLib.cpp"],
#
# ========== ONLY IF LOCAL TESTING IS USED ===========
# include_dirs=[os.path.join(
# this_directory, "./src/optframe-src/include")],
#
# ============ ONLY IF REMOTE GIT IS USED ============
include_dirs=[os.path.join(
this_directory, "./optframe-git/include")],
this_directory, "./optframe-git/include"),
os.path.join(
this_directory, "./optframe-git/src")
],
#
# ====================================================
# In the future, try c++20. For now, too early.
Expand Down

0 comments on commit 4dfb873

Please sign in to comment.