Differences between revisions 1 and 30 (spanning 29 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 30 as of 2019-11-15 01:12:03
Size: 937
Editor: TunayDurmaz
Comment: boost 1.66
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]]

 {{{#!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 20: Line 33:
=== New Miniconda Installations === == Python 3 Environments ==
Line 22: Line 35:
 1. Download and install [[https://repo.continuum.io/miniconda/|Miniconda]].
 1. Add the new installation to PATH.{{{
export PATH=<new miniconda path>/bin:$PATH
}}}
 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
}}}
No python 3 environments yet.

Python 3 Transition Environments

Phase 1: Upgrade CMake to 3.14

PR: Upgrade CMake to 3.14

Merged.

Phase 2: Test Boost 1.64

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

  •    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.