Differences between revisions 1 and 29 (spanning 28 versions)
Revision 1 as of 2019-05-18 10:42:26
Size: 1368
Editor: TunayDurmaz
Comment: Initial setup and usage of python 3 environments
Revision 29 as of 2019-11-03 17:16:55
Size: 1285
Editor: TunayDurmaz
Comment:
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

=== Phase 1: Upgrade CMake to 3.14 ===
[[https://github.com/cryoem/eman2/pull/407|PR: Upgrade CMake to 3.14]]

Install cmake=3.14 and eman-deps=15.1.
 {{{#!highlight bash
conda install eman-deps=15.1 cmake=3.14 -c cryoem -c defaults -c conda-forge
Line 8: Line 13:
 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 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
Line 20: Line 22:
=== New Miniconda Installations === === Phase 3: Test Boost 1.66 ===
[[https://github.com/cryoem/eman2/pull/410|PR: Build with Boost versions 1.65-1.66]]
Line 22: Line 25:
 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=16.1 cmake=3.14 boost=1.66 -c cryoem -c defaults -c conda-forge
Line 26: Line 28:
 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

=== Phase 4: Decide Boost Version ===
[[https://github.com/cryoem/eman2/pull/409|PR: Build with Boost versions 1.67-1.69]]

 {{{#!highlight bash
conda install eman-deps=17.1 cmake=3.14 boost=1.67 -c cryoem -c defaults -c conda-forge
conda install eman-deps=17.1 cmake=3.14 boost=1.68 -c cryoem -c defaults -c conda-forge
conda install eman-deps=17.1 cmake=3.14 boost=1.69 -c cryoem -c defaults -c conda-forge
Line 34: Line 39:
== 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
}}}
== Python 3 Environments ==

No python 3 environments yet.

Python 3 Transition Environments

Phase 1: Upgrade CMake to 3.14

PR: Upgrade CMake to 3.14

Install cmake=3.14 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

PR: Upgrade Boost to 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
    

Phase 4: Decide Boost Version

PR: Build with Boost versions 1.67-1.69

  •    1 conda install eman-deps=17.1 cmake=3.14 boost=1.67 -c cryoem -c defaults -c conda-forge
       2 conda install eman-deps=17.1 cmake=3.14 boost=1.68 -c cryoem -c defaults -c conda-forge
       3 conda install eman-deps=17.1 cmake=3.14 boost=1.69 -c cryoem -c defaults -c conda-forge
    

Python 3 Environments

No python 3 environments yet.