6665
Comment: remove channel boost
|
7632
obsolete environment instructions
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
<<TableOfContents()>> | == Python 3 Transition Environments == === Phase 1: Upgrade CMake to 3.14 === [[https://github.com/cryoem/eman2/pull/407|PR: Upgrade CMake to 3.14]] Install cmake=3.24 and eman-deps=15.1. {{{#!highlight bash conda install eman-deps=15.1 cmake=3.14 -c cryoem -c defaults -c conda-forge }}} === Phase 2: Test Boost 1.64 === [[https://github.com/cryoem/eman2/pull/408|PR: Upgrade Boost to 1.64]] {{{#!highlight bash conda install eman-deps=16.1 cmake=3.14 boost=1.64 -c cryoem -c defaults -c conda-forge }}} === Phase 3: Test Boost 1.66 === [[https://github.com/cryoem/eman2/pull/410|PR: Build with Boost versions 1.65-1.66]] {{{#!highlight bash conda install eman-deps=16.1 cmake=3.14 boost=1.66 -c cryoem -c defaults -c conda-forge }}} == Python 3 Environments (Coming Soon!) == Coming soon! --------- The following sections were written with conda environments in mind, but will not be used. Keeping here for future reference. --------- |
Line 4: | Line 39: |
{{{#!wiki caution | {{{#!wiki comment |
Python 3 Transition Environments
Phase 1: Upgrade CMake to 3.14
Install cmake=3.24 and eman-deps=15.1.
1 conda install eman-deps=15.1 cmake=3.14 -c cryoem -c defaults -c conda-forge
Phase 2: Test Boost 1.64
1 conda install eman-deps=16.1 cmake=3.14 boost=1.64 -c cryoem -c defaults -c conda-forge
Phase 3: Test Boost 1.66
PR: Build with Boost versions 1.65-1.66
1 conda install eman-deps=16.1 cmake=3.14 boost=1.66 -c cryoem -c defaults -c conda-forge
Python 3 Environments (Coming Soon!)
Coming soon!
The following sections were written with conda environments in mind, but will not be used. Keeping here for future reference.
Setup Development Environment with Conda
If you have an existing Miniconda2/Anaconda2 installation,
Remove miniconda/anaconda entries from PATH.
If you want to make use of your cached packages, move your pkgs/ and envs/ folders out of your current installation to another location.
Install Miniconda3.
and follow the prompts.1 bash <Miniconda3-installer>
Specify package and environment directories outside of the miniconda installation. These are the directories where conda environments and extracted packages will live. If you need to reinstall miniconda, you won't have to re-create your environments and re-download and re-extract all the packages. Reinstallation will only reset the base environment. First, create the cache directory, if it doesn't exist.
1 mkdir -p <path-to-conda-cache-directory> 2 # mkdir -p ~/conda-global-cache 3 4 conda config --add pkgs_dirs <path-to-conda-cache-directory>/pkgs 5 # conda config --add pkgs_dirs ~/conda-global-cache/pkgs 6 7 conda config --add envs_dirs <path-to-conda-cache-directory>/envs 8 # conda config --add pkgs_dirs ~/conda-global-cache/envs 9
- Configure conda.
Install conda 4.6.14.
1 conda install conda=4.6.14 -c defaults
- Initialize conda for shell interaction.
Development Environments
Do not install anything into the base environment, do not use the base environment for development, use non-base environments.
- Create a new environment.
1 conda create -n eman-deps-14.1 eman-deps=14.1 -c cryoem -c defaults -c conda-forge
OR choose a simpler name for the environment, eman-env or eman.
1 conda create -n eman-env eman-deps=14.1 -c cryoem -c defaults -c conda-forge
- Activate the environment. OR
1 conda activate eman-deps-14.1
1 conda activate eman-env
- Navigate to your source directory. Checkout a branch and pull updates from the remote.
- Navigate to your build directory, build and install.
Python 3 Transition Environments
Phase 1: Upgrade CMake to 3.14
- Create a new environment and activate it.
Navigate to your source directory. Checkout branch cmake-upgrade and pull updates from the remote.
- Navigate to your build directory, build and install.
- To switch to another conda environment, first deactivate your current environment.
1 conda deactivate
Phase 2: Test Boost 1.64
- Create a new environment and activate it.
Navigate to your source directory. Checkout branch py2-boost-164 and pull updates from the remote.
- Navigate to your build directory, build and install.
- To switch to another conda environment, first deactivate your current environment.
1 conda deactivate
Phase 3: Test Boost 1.66
PR: Build with Boost versions 1.65-1.66
- Create a new environment and activate it.
Navigate to your source directory. Checkout branch py2-boost-166 and pull updates from the remote.
- Navigate to your build directory, build and install.
- To switch to another conda environment, first deactivate your current environment.
1 conda deactivate
Python 3 Environments (Coming Soon!)
Coming soon!