1368
Comment: Initial setup and usage of python 3 environments
|
1058
strike through merged
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
== Setup Python 3 Environment == | <<TableOfContents()>> |
Line 3: | Line 3: |
=== Existing Miniconda/Anaconda Installations === | == Python 3 Transition Environments == |
Line 5: | Line 5: |
1. Create a new environment with python 3{{{ conda create -n eman-deps-15 eman-deps=15 -c cryoem/label/py3 -c cryoem -c defaults -c conda-forge }}} 1. Use the activation command printed at the end of the previous command's run to activate the new conda environment {{{ conda activate eman-deps-15 or source activate eman-deps-15 }}} 1. To switch to another conda environment, first deactivate your current environment{{{ conda deactivate or source deactivate |
=== Phase 1: Upgrade CMake to 3.14 === --([[https://github.com/cryoem/eman2/pull/407|PR: Upgrade CMake to 3.14]])-- Merged. === Phase 2: Test Boost 1.64 === --([[https://github.com/cryoem/eman2/pull/408|PR: Upgrade Boost to 1.64]])-- Merged. === Phase 3: Test Boost 1.66 === --([[https://github.com/cryoem/eman2/pull/410|PR: Build with Boost versions 1.65-1.66]])-- Merged. === Phase 4: Decide Boost Version === --([[https://github.com/cryoem/eman2/pull/409|PR: Build with Boost versions 1.67-1.69]])-- Skipped. {{{#!highlight bash conda install eman-deps=16.1 cmake=3.14 boost=1.67 -c cryoem -c defaults -c conda-forge conda install eman-deps=16.1 cmake=3.14 boost=1.68 -c cryoem -c defaults -c conda-forge conda install eman-deps=16.1 cmake=3.14 boost=1.69 -c cryoem -c defaults -c conda-forge |
Line 20: | Line 35: |
=== New Miniconda Installations === | == Python 3 Environments == |
Line 22: | Line 37: |
1. Download and install [[https://repo.continuum.io/miniconda/|Miniconda]]. 1. Add the new installation to PATH.{{{ export PATH=<new miniconda path>/bin:$PATH |
{{{#!highlight bash conda install eman-deps=18.1 cmake=3.14 boost=1.66 -c cryoem -c defaults -c conda-forge |
Line 26: | Line 40: |
1. Update conda {{{ conda update conda -c defaults }}} 1. Install eman-deps with python 3{{{ conda install eman-deps=15 -c cryoem/label/py3 -c cryoem -c defaults -c conda-forge }}} == Build == 1. Activate the python 3 environment, if it is a conda environment{{{ conda activate eman-deps-15 or source activate eman-deps-15 }}} or edit PATH to have the miniconda installation with python 3 as the first entry. 1. Move into your build directory {{{ cd <python 3 build directory> }}} 1. Build and install {{{ cmake <eman2 source directory> make make install }}} |
Contents
Python 3 Transition Environments
Phase 1: Upgrade CMake to 3.14
Merged.
Phase 2: Test Boost 1.64
Merged.
Phase 3: Test Boost 1.66
PR: Build with Boost versions 1.65-1.66
Merged.
Phase 4: Decide Boost Version
PR: Build with Boost versions 1.67-1.69
Skipped.
Python 3 Environments
1 conda install eman-deps=18.1 cmake=3.14 boost=1.66 -c cryoem -c defaults -c conda-forge