-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from amisr/develop
[MNT]: Release v2020.2.0
- Loading branch information
Showing
35 changed files
with
3,513 additions
and
7,163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
.. include:: ../README.rst | ||
======== | ||
Contents | ||
======== | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
|
||
readme | ||
installation/index | ||
usage | ||
reference/index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
============ | ||
Installation | ||
============ | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
|
||
installation.linux | ||
installation.macos | ||
installation.windows | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Installation Guide for Linux | ||
**************************** | ||
|
||
Installing the flipchem python package requires python (python 3.x is recommended), a C compiler, and a Fortran compiler. Installation also requires the numpy python package to first be installed. Below is a guide for installation. | ||
|
||
Install system packages | ||
======================= | ||
|
||
Use you linux system package manager, for example `dnf` on Fedora or `aptitude` in Ubuntu, to install:: | ||
|
||
gcc python3 python3-devel | ||
|
||
You can usually find the OS specific package name with some light googling. If not, feel free to post an issue to github: https://github.com/amisr/flipchem | ||
|
||
Install numpy | ||
============= | ||
|
||
It is generally a good idea to work within a python virtual environment. This isolates the python environment that you work within from the system python enviroment. That means you are free to install packages without worrying about breaking your system. If you don't already have an environment set up, `here's a nice guide <https://realpython.com/python-virtual-environments-a-primer/>`_. | ||
|
||
After activating the python environment, you can install numpy using `pip`:: | ||
|
||
pip install numpy | ||
|
||
Installing flipchem | ||
=================== | ||
|
||
Now you can install flipchem to the same python environment using `pip`:: | ||
|
||
pip install git+https://github.com/amisr/flipchem.git@v2020.2.0 | ||
|
||
|
||
That's it! Easy peasy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Installation Guide for macOS | ||
**************************** | ||
|
||
Installing the flipchem python package requires python (python 3.x is recommended), a C compiler, and a Fortran compiler. Installation also requires the numpy python package to first be installed. Below is a guide for installation. | ||
|
||
Install system packages | ||
======================= | ||
|
||
In macOS it is recommended that you obtain `gcc` and `python3` using a package manager such as `homebrew` or `macports`. If you choose `homebrew`, then you can install `gcc` and `python` with:: | ||
|
||
$ brew install gcc python | ||
|
||
This will install the python headers (traditionally supplied by a `python-devel` package in linux) needed to compile the C and Fortran source code in `flipchem`. If you encounter trouble, feel free to post an issue to github: https://github.com/amisr/flipchem | ||
|
||
Install numpy | ||
============= | ||
|
||
It is generally a good idea to work within a python virtual environment. This isolates the python environment that you work within from the system python enviroment. That means you are free to install packages without worrying about breaking your system. If you don't already have an environment set up, `here's a nice guide <https://realpython.com/python-virtual-environments-a-primer/>`_. | ||
|
||
After activating the python environment, you can install numpy using `pip`:: | ||
|
||
pip install numpy | ||
|
||
Installing flipchem | ||
=================== | ||
|
||
Now you can install flipchem to the same python environment using `pip`:: | ||
|
||
pip install git+https://github.com/amisr/flipchem.git@v2020.2.0 | ||
|
||
|
||
That's it! Easy peasy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Installation Guide for Windows | ||
****************************** | ||
|
||
Installing the flipchem python package requires python (python 3.x is recommended), a C compiler, and a Fortran compiler. Installation also requires the numpy python package to first be installed. Below is a guide for installation. | ||
|
||
Install system packages | ||
======================= | ||
|
||
On Windows 10, it is recommended that you use the `chocolatey` package manager to install compilers and python. Package managers simplify the management of installed software. One could also install the C and Fortran compilers and python without a package manager, but this will likely be harder than using `chocolatey`. First, `install chocolatey <https://chocolatey.org/>`_. | ||
|
||
Next, install the compilers and python. Here we will use miniconda to provide python:: | ||
|
||
> choco install mingw32 | ||
|
||
and:: | ||
|
||
> choco install miniconda3 --params="'/AddToPath:1'" --params="'/RegisterPython:1'" | ||
|
||
Optional | ||
-------- | ||
|
||
If you would like to work within a bash shell, then you should also install `git bash`:: | ||
|
||
> choco install git.install | ||
|
||
and then, open a git-bash shell and run the following command to initialize the conda python environment for bash:: | ||
|
||
$ /c/tools/miniconda3/Scripts/conda init bash | ||
|
||
After this, you will have to restart the bash console. | ||
|
||
Install numpy | ||
============= | ||
|
||
Brief aside: It is generally a good idea to work within a python virtual environment. This isolates the python environment that you work within from the system python enviroment. That means you are free to install packages without worrying about breaking your system. If you don't already have an environment set up, `here's a nice guide <https://realpython.com/python-virtual-environments-a-primer/>`_. Since we are using miniconda, which is isolated from the Windows system anyway, this isn't as important, but it is a good habit. You can use `conda` to install the `virtualenv` package:: | ||
|
||
conda install virtualenv | ||
|
||
To install `numpy`, we'll use `conda`:: | ||
|
||
conda install numpy | ||
|
||
Installing flipchem | ||
=================== | ||
|
||
Now you can install flipchem to the same python environment using `pip`:: | ||
|
||
pip install git+https://github.com/amisr/flipchem.git@v2020.2.0 | ||
|
||
If `pip` isn't installed, you can install it using `conda`:: | ||
|
||
conda install pip | ||
|
||
|
||
That's it! Easy peasy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../README.rst |
Oops, something went wrong.