Add convenience scripts to install conda development environment. (#11386)
* add remaining env updates Co-authored-by: Jacob Oursland <jacob.oursland@gmail.com> Co-authored-by: Adrián Insaurralde Avalos <36372335+adrianinsaval@users.noreply.github.com>
This commit is contained in:
1
conda/cmake.cmd
Normal file
1
conda/cmake.cmd
Normal file
@@ -0,0 +1 @@
|
||||
mamba run --live-stream -n freecad cmake %*
|
||||
3
conda/cmake.sh
Executable file
3
conda/cmake.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
mamba run --live-stream -n freecad cmake $@
|
||||
@@ -3,3 +3,6 @@ channels:
|
||||
- conda-forge
|
||||
dependencies:
|
||||
- conda-devenv
|
||||
- mamba==1.4.9 # NOTE: Pin to highest version supported by the devenv
|
||||
- python==3.11 # dependencies. If a higher version is installed, a crash
|
||||
# occurs during the downgrade process.
|
||||
|
||||
@@ -66,16 +66,17 @@ dependencies:
|
||||
- debugpy
|
||||
- doxygen
|
||||
- eigen
|
||||
- fmt
|
||||
- freetype
|
||||
- gmsh
|
||||
- graphviz
|
||||
- hdf5
|
||||
- libcxx<16
|
||||
- libcxx
|
||||
- matplotlib
|
||||
- ninja
|
||||
- numpy
|
||||
- occt==7.6.3
|
||||
- openssl==3.0.*
|
||||
- openssl
|
||||
- pcl
|
||||
- pip
|
||||
- pivy
|
||||
@@ -90,11 +91,9 @@ dependencies:
|
||||
- qt-main
|
||||
- qt-webengine
|
||||
- six
|
||||
- smesh==9.9
|
||||
- smesh
|
||||
- swig
|
||||
- vtk
|
||||
- xerces-c
|
||||
- yaml-cpp
|
||||
- zlib
|
||||
- pip:
|
||||
- ptvsd
|
||||
- zlib
|
||||
10
conda/setup-environment.cmd
Normal file
10
conda/setup-environment.cmd
Normal file
@@ -0,0 +1,10 @@
|
||||
:: create the conda environment as a subdirectory
|
||||
call mamba env create -p .conda/freecad -f conda/conda-env.yaml
|
||||
|
||||
:: add the environment subdirectory to the conda configuration
|
||||
call conda config --add envs_dirs %CONDA_PREFIX%/envs
|
||||
call conda config --add envs_dirs %CD%/.conda
|
||||
call conda config --set env_prompt '({name})'
|
||||
|
||||
:: install the FreeCAD dependencies into the environment
|
||||
call mamba run --live-stream -n freecad mamba-devenv -f conda/environment.devenv.yml
|
||||
12
conda/setup-environment.sh
Executable file
12
conda/setup-environment.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# create the conda environment as a subdirectory
|
||||
mamba env create -p .conda/freecad -f conda/conda-env.yaml
|
||||
|
||||
# add the environment subdirectory to the conda configuration
|
||||
conda config --add envs_dirs $CONDA_PREFIX/envs
|
||||
conda config --add envs_dirs $(pwd)/.conda
|
||||
conda config --set env_prompt '({name})'
|
||||
|
||||
# install the FreeCAD dependencies into the environment
|
||||
mamba run --live-stream -n freecad mamba-devenv -f conda/environment.devenv.yml
|
||||
Reference in New Issue
Block a user