Skip to content

Commit

Permalink
build: source dependencies from conda
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanls committed Mar 4, 2025
1 parent d53d8ed commit f5a3c16
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 37 deletions.
23 changes: 17 additions & 6 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,31 @@ channels:
- aihabitat
- pytorch
- pyg
- defaults
- conda-forge
- defaults

dependencies:
- python=3.8
- cmake>=3.14.0
- pyg::pyg
- wget

- aihabitat::habitat-sim=0.2.2
- pytorch::pytorch=1.11.0
- aihabitat::withbullet
- conda-forge::cmake>=3.14.0
- conda-forge::importlib_resources
- conda-forge::matplotlib
- conda-forge::numpy
- conda-forge::pandas
- conda-forge::pillow
- conda-forge::quaternion=2023.0.3 # later versions missing np.long
- conda-forge::scikit-image
- conda-forge::scikit-learn=1.3.2
- conda-forge::scipy
- conda-forge::sympy
- conda-forge::tqdm
- conda-forge::wandb
- conda-forge::wget
- pyg::pyg
- pytorch::pytorch=1.11.0
- pytorch::torchvision
- aihabitat::withbullet

- pip
- pip:
Expand Down
27 changes: 19 additions & 8 deletions environment_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,37 @@
# $ conda activate tbp.monty
#
# platform: osx-arm64
name: tbp.monty
name: tbp.monty_test
channels:
- aihabitat
- pytorch
- pyg
- defaults
- conda-forge
- defaults

dependencies:
- python=3.8
- cmake>=3.14.0
- pyg::pyg
- wget

- aihabitat::habitat-sim=0.2.2
- mkl<2022 # prevents Intel errors when osx-64 environment is running on osx-arm64 platform
- pytorch::pytorch=1.11.0
- aihabitat::withbullet
- conda-forge::cmake>=3.14.0
- conda-forge::importlib_resources
- conda-forge::matplotlib
- conda-forge::mkl<2022 # prevents Intel errors when osx-64 environment is running on osx-arm64 platform
- conda-forge::numpy
- conda-forge::pandas
- conda-forge::pillow
- conda-forge::quaternion=2023.0.3 # later versions missing np.long
- conda-forge::scikit-image
- conda-forge::scikit-learn=1.3.2
- conda-forge::scipy
- conda-forge::sympy
- conda-forge::tqdm
- conda-forge::wandb
- conda-forge::wget
- pyg::pyg
- pytorch::pytorch=1.11.0
- pytorch::torchvision
- aihabitat::withbullet

- pip
- pip:
Expand Down
34 changes: 17 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,21 @@ classifiers = [
'Topic :: Scientific/Engineering :: Artificial Intelligence'
]
dependencies = [
'importlib_resources',
'matplotlib',
'numpy',
'pandas',
'pillow',
'scikit-image',
'scikit-learn==1.3.2',
'scipy',
'sympy',
'torch-geometric',
'tqdm',
'wandb',
'habitat_sim', # imported via conda (aihabitat::habitat-sim)
'importlib_resources', # imported via conda (conda-forge::importlib_resources)
'matplotlib', # imported via conda (conda-forge::matplotlib)
'numpy', # imported via conda (conda-forge::numpy)
'pandas', # imported via conda (conda-forge::pandas)
'pillow', # imported via conda (conda-forge::pillow)
'scikit-image', # imported via conda (conda-forge::scikit-image)
'scikit-learn==1.3.2', # imported via conda (conda-forge::scikit-learn)
'scipy', # imported via conda (conda-forge::scipy)
'sympy', # imported via conda (conda-forge::sympy)
'torch', # imported via conda (pytorch::pytorch)
'torchvision', # imported via conda (pytorch::torchvision)
'torch-geometric', # imported via conda (pyg::pyg)
'tqdm', # imported via conda (conda-forge::tqdm)
'wandb', # imported via conda (conda-forge::wandb)
]
description = 'Thousand Brains Project Monty'
dynamic = ['version']
Expand Down Expand Up @@ -97,13 +100,10 @@ ignore = ['DEP002']
known_first_party = [
'attr', # transitive dependency bundled with habitat-sim
'benchmarks', # benchmark configurations and scripts
'habitat_sim', # imported via conda (habitat-sim)
'magnum', # transitive dependency bundled with habitat-sim
'quaternion', # imported via conda (quaternion)
'quaternion', # transitive add-on for numpy installed via conda (conda-forge::quaternion)
'tests',
'tools',
'torch', # imported via conda (pytorch)
'torchvision', # imported via conda (torchvision)
'tools'
]

[tool.deptry.package_module_name_map]
Expand Down
23 changes: 17 additions & 6 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,26 @@ requirements:
- pip
run:
- python==3.8
- cmake>=3.14.0
- pyg::pyg
- wget
- aihabitat::habitat-sim=0.2.2 # [linux64 or osx]
- mkl<2022 # [osx]
- pytorch::pytorch=1.11.0
- aihabitat::withbullet
- conda-forge::cmake>=3.14.0
- conda-forge::importlib_resources
- conda-forge::matplotlib
- conda-forge::mkl<2022 # [osx]
- conda-forge::numpy
- conda-forge::pandas
- conda-forge::pillow
- conda-forge::quaternion=2023.0.3 # later versions missing np.long
- conda-forge::scikit-image
- conda-forge::scikit-learn=1.3.2
- conda-forge::scipy
- conda-forge::sympy
- conda-forge::tqdm
- conda-forge::wandb
- conda-forge::wget
- pyg::pyg
- pytorch::pytorch=1.11.0
- pytorch::torchvision
- aihabitat::withbullet

about:
home: https://github.com/thousandbrainsproject/tbp.monty
Expand Down

0 comments on commit f5a3c16

Please sign in to comment.