Skip to content

Commit

Permalink
Trying around
Browse files Browse the repository at this point in the history
  • Loading branch information
costashatz committed Feb 6, 2024
1 parent da60794 commit 4d3ac9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ jobs:
- uses: actions/checkout@v2
- name: Install deps
run: brew install binutils
- name: Install python
run: if [ "$BUILD_PYTHON" = "ON" ]; then brew install python ; fi
- name: Install DART
run: brew install dartsim
- name: Build Magnum
Expand Down
6 changes: 6 additions & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,23 @@ def configure_robot_dart(conf):
conf.check_magnum_plugins(components='AssimpImporter StbTrueTypeFont', required=False)
conf.check_magnum_integration(components='Dart Eigen', required=False)

print("~~~~~PYTHON~~~~~~")

conf.env['py_flags'] = ''
conf.env['BUILD_PYTHON'] = False
if conf.options.pybind:
print("~~~~~PYTHON#2~~~~~~")
conf.check_python_version((2, 7))
print("~~~~~PYTHON#3~~~~~~")
conf.check_python_headers(features='pyext')
conf.check_python_module('numpy')
conf.check_python_module('dartpy')
conf.check_pybind11(required=True)
conf.env['BUILD_PYTHON'] = True
if not conf.options.build_shared:
conf.env['py_flags'] = ' -fPIC' # we need -fPIC for python if building static
print("~~~~~PYTHON#4~~~~~~")
print("~~~~~PYTHON#5~~~~~~")

# We require Magnum DartIntegration, EigenIntegration, AssimpImporter, and StbTrueTypeFont
if len(conf.env.INCLUDES_MagnumIntegration_Dart) > 0 and len(conf.env.INCLUDES_MagnumIntegration_Eigen) > 0 and len(conf.env.INCLUDES_MagnumPlugins_AssimpImporter) > 0 and len(conf.env.INCLUDES_MagnumPlugins_StbTrueTypeFont) > 0:
Expand Down

0 comments on commit 4d3ac9d

Please sign in to comment.