Skip to content

Commit

Permalink
Merge branch 'minor' into topic/callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
langmm committed Sep 25, 2023
2 parents 28344a8 + e99a692 commit a15684a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
1 change: 1 addition & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ outputs:
- {{ pin_subpackage('yggdrasil.zmq', exact=True) }} # [win]
- cmake # [not win]
- compiler-rt # [osx]
- m2w64-make # [win]
- make # [not win]
- {{ compiler('c') }}
- {{ compiler('cxx') }}
Expand Down
13 changes: 11 additions & 2 deletions utils/requirements/requirements.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,17 @@
},
{
"make": {
"method": "conda",
"os": "unix"
"options": [
{
"method": "conda",
"os": "unix"
},
{
"name": "m2w64-make",
"method": "conda",
"os": "win"
}
]
}
},
{
Expand Down
8 changes: 6 additions & 2 deletions utils/requirements/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@ extras:
method: conda
os: unix
- make:
method: conda
os: unix
options:
- method: conda
os: unix
- name: m2w64-make
method: conda
os: win
- "{{ compiler('c') }}":
method: conda_recipe
- "{{ compiler('cxx') }}":
Expand Down
1 change: 1 addition & 0 deletions utils/requirements/requirements_condaonly.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ git # [conda]
juliaup # [conda,julia]
lz4 # [conda,zmq]
m2w64-gcc-fortran; platform_system == 'Windows' # [conda,fortran]
m2w64-make; platform_system == 'Windows' # [conda,c]
m2w64-toolchain_win-64; platform_system == 'Windows' # [conda,fortran]
make; platform_system != 'Windows' # [conda,c]
matplotlib-base # [conda]
Expand Down
6 changes: 4 additions & 2 deletions yggdrasil/drivers/OSRModelDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,10 @@ def compile_dependencies(cls, target='OpenSimRootYgg', toolname=None,
elif not os.path.isfile(cls.executable_path):
return
cmd = ['make', target] + flags
logger.info(f"Calling {cmd} from {cwd} with make="
f"{shutil.which('make')}")
logger.info(
f"Calling {cmd} from {cwd} with make="
f"{shutil.which('make')} and PATH=\n "
+ '\n '.join(os.environ['PATH'].split(os.pathsep)))
subprocess.check_call(cmd, cwd=cwd, env=env)

def write_wrappers(self, **kwargs):
Expand Down

0 comments on commit a15684a

Please sign in to comment.