Skip to content

Commit

Permalink
Fat binary for cython ext
Browse files Browse the repository at this point in the history
  • Loading branch information
fredyshox committed Nov 17, 2023
1 parent 5a09393 commit 2c92c0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ __pycache__/
*$py.class

# C extensions
*.a
*.o
*.so

Expand Down
5 changes: 3 additions & 2 deletions rednose/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ if common != "":
# for SWAGLOG support
libs = ['zmq', common]

rednose = env.SharedLibrary("helpers/ekf_sym", cc_sources, LIBS=libs)
rednose_python = envCython.Program("helpers/ekf_sym_pyx.so", "helpers/ekf_sym_pyx.pyx", LIBS=[rednose] + libs + envCython["LIBS"])
ekf_objects = env.SharedObject(cc_sources)
rednose = env.Library("helpers/ekf_sym", ekf_objects, LIBS=libs)
rednose_python = envCython.Program("helpers/ekf_sym_pyx.so", ["helpers/ekf_sym_pyx.pyx", ekf_objects], LIBS=libs + envCython["LIBS"])

Export('rednose', 'rednose_python')

0 comments on commit 2c92c0e

Please sign in to comment.