You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6196180
Browse filesBrowse the repository at this point in the historyBrowse files
It is usually not necessary to build from source, however the instructions below are provided If you need support, please post a message at [https://forum.devsim.org](https://forum.devsim.org).
7
+
8
+
9
+
## Prerequisites
10
+
11
+
An Anaconda (or Miniconda) installation is optional for `Linux` and `macOS`, but is highly recommended for `Windows`. The full package may be downloaded from [https://anaconda.com](https://anaconda.com). The minimal install is available from. [https://docs.anaconda.com/free/miniconda/](https://docs.anaconda.com/free/miniconda/)
12
+
13
+
14
+
For `x86_64` or `x64` systems, the Intel MKL is recommended, but it is not needed for building the application.
15
+
16
+
## Setting Version Number
17
+
18
+
Set the version number by changing `DEVSIM_VERSION_STRING` in `CMakeLists.txt`. The `version` also needs to be changed in `dist/bdist_wheel/setup.cfg`.
19
+
20
+
## Platform Instructions
21
+
22
+
### Linux
23
+
24
+
#### Building Red Hat 7 compatible version
25
+
26
+
The `Centos 7` compatible [manylinux2014](https://github.com/pypa/manylinux?tab=readme-ov-file#manylinux2014-centos-7-based-glibc-217) distribution is used for binary Linux releases, as it is forward compatible with most Linux distributions and used the Intel MKL. It will install all required dependencies, including Anaconda Python. It is recommended to run this in a docker image.
27
+
28
+
First download the source on your host Linux machine:
29
+
```
30
+
git clone https://github.com/devsim/devsim
31
+
cd devsim
32
+
git submodule init
33
+
git submodule update
34
+
```
35
+
36
+
Then to build on the local system, use
37
+
```
38
+
bash scripts/build_manylinux2014.sh version
39
+
```
40
+
41
+
or in a docker image.
42
+
```
43
+
bash scripts/build_docker_manylinux2014.sh version
44
+
```
45
+
46
+
Note `version` is replaced with the desired version. There should then be a Python `.whl` file in the `dist` directory.
47
+
48
+
#### Other Linux Distributions
49
+
50
+
Additional build scripts are available for `Ubuntu` and `Fedora` in the `scripts` directory.
51
+
52
+
53
+
### Building macOS
54
+
55
+
The macOS release version is built using a Travis build server (see `.travis.yml`), but it can be built locally with the following prerequisites:
56
+
57
+
* Xcode
58
+
* Homebrew [https://brew.sh/](https://brew.sh/)
59
+
60
+
The rest of the components, including Anaconda Python and various build components are downloaded and installed in the scripts below.
61
+
62
+
```
63
+
git clone https://github.com/devsim/devsim.git
64
+
cd devsim
65
+
git submodule init
66
+
git submodule update
67
+
bash scripts/build_macos.sh clang version
68
+
```
69
+
70
+
where `version` is replaced with the desired version. The Python wheel file is then in `devsim/dist`
71
+
Note that the resulting package file does not have any dependencies on Homebrew to run.
72
+
73
+
### Building on Windows
74
+
75
+
***Please note that the Windows build scripts will make changes to an existing MSYS 2 installation. It will also create new Anaconda environments.***
|[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)| Code of conduct |
18
+
|[TEST.md](TEST.md)| Testing instructions |
19
+
20
+
and removed [install.py](install.py).
21
+
22
+
### Database Command Removal
23
+
24
+
Remove commands:
25
+
26
+
*`create_db`
27
+
*`open_db`
28
+
*`close_db`
29
+
*`save_db`
30
+
*`add_db_entry`
31
+
*`get_db_entry`
32
+
33
+
This feature was not used in any example or well documented. This also removes the binary dependence on SQLite.
34
+
8
35
## Version 2.8.0
9
36
10
37
### Python Scripts
11
38
12
-
Based on a contribution by [@simbilod](https://github.com/simbilod), all of the Python scripts have been reformatted. The build system was also updated to enforce Python script modifiecations are properly formatted when submitted to the project.
39
+
Based on a contribution by [@simbilod](https://github.com/simbilod), all of the Python scripts have been reformatted. The build system was also updated to enforce Python script modifications are properly formatted when submitted to the project.
Copy file name to clipboardExpand all lines: INSTALL.md
+2-113Lines changed: 2 additions & 113 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,6 @@
4
4
5
5
Please visit the DEVSIM homepage at [https://devsim.org](https://devsim.org) for the latest information concerning the availability of the software.
6
6
7
-
Supported Platforms:
8
-
9
-
* Centos, Red Hat 7
10
-
* macOS
11
-
* Microsoft Windows (64 bit)
12
-
13
7
## Installing the Binary Package
14
8
15
9
### Prerequisites
@@ -59,12 +53,7 @@ pip install devsim
59
53
60
54
#### Alternative Package Download
61
55
62
-
Binary releases are available from [Zenodo](https://doi.org/10.5281/zenodo.1186952), or from [GitHub](https://github.com/devsim/devsim/releases). Uncompress the file to the desired directory. Then go into the the directory and run the Python installer.
63
-
64
-
cd devsim
65
-
python install.py
66
-
67
-
This script will install DEVSIM into your environment. If you should need to remove this environment, you can use ``pip``. Alternatively, you can set the PYTHONPATH environment variable to the ``devsim/lib`` directory.
56
+
Binary releases are available from [Zenodo](https://doi.org/10.5281/zenodo.1186952), or from [GitHub](https://github.com/devsim/devsim/releases). Uncompress the file to the desired directory. The preferred installation method is to install the `.whl` file using `pip`.
68
57
69
58
#### Basic Test
70
59
@@ -83,105 +72,5 @@ At this time, the macOS version only targets Intel-based systems. There has bee
83
72
84
73
## Building from Source
85
74
86
-
***For the builds in this section, an Anaconda (or Miniconda) installation is required. Please install using the instructions above. Ensure that you are running the scripts below from a shell with an activated Python environment, having the ``conda`` command in your path. Please note that the build scripts will create a conda environment named ``devsim_python3_build``.***
87
-
88
-
#### Building Centos 7 Linux
89
-
90
-
***The scripts will install many system packages. It is highly recommended to run these scripts in a docker container.***
91
-
92
-
The Centos 7 version is used for binary Linux releases, as it is forward compatible with most Linux distributions and used the Intel MKL. It will install all required dependencies, including Anaconda Python. It is recommended to run this in a docker image. ***There is no need to run ``install_miniconda_linux.sh`` if it is already installed***.
where ``version`` is replaced with the desired version. The compressed file is then ``devsim/dist/devsim_linux_version.tgz``
103
-
104
-
#### Building Other Linux Systems
105
-
106
-
***Please note that these scripts may attempt to install packages using the system installer on your system. Please evaluate the scripts carefully to ensure you agree with these changes to your system. It is highly recommended to run these scripts in a docker container. Anaconda Python is not required for these builds.***
107
-
108
-
Additional build scripts are available for ``Ubuntu`` and ``Fedora`` in the ``scripts`` directory. These version do not use the Intel MKL and replace the use of the Intel MKL Pardiso Solver with UMFPACK.
109
-
110
-
### Building macOS
111
-
112
-
#### Release Version
113
-
114
-
***The builds scripts will make changes to an existing Homebrew installation.***
115
-
116
-
The macOS release version is built using a Travis build server (see ``.travis.yml``), but it can be built locally with the following prerequisites:
117
-
118
-
* Xcode 10.1
119
-
* Homebrew [https://brew.sh/](https://brew.sh/)
120
-
* GCC Compiler (Brew package gcc@9)
121
-
122
-
The rest of the components, including Anaconda Python and various build components are downloaded and installed in the scripts below. ***There is no need to run ``install_miniconda_macos.sh`` if Anaconda Python is already installed.***.
123
-
124
-
```
125
-
git clone https://github.com/devsim/devsim.git
126
-
cd devsim
127
-
git submodule init
128
-
git submodule update
129
-
source scripts/install_miniconda_macos.sh
130
-
bash scripts/build_macos.sh gcc version
131
-
```
132
-
133
-
where ``version`` is replaced with the desired version. The compressed file is then ``devsim/dist/devsim_macos_version.tgz``
134
-
Note that the resulting package file does not have any dependencies on Homebrew on the target system.
135
-
136
-
#### Using macOS system compiler
137
-
138
-
Please note that you will need to install the Xcode developer tools, including the C++ compiler for your system. By default it uses UMFPACK 5.1 as the direct solver, but the build scripts can be modified to support Intel MKL Pardiso. The rest of the components, including Anaconda Python and various build components are downloaded and installed in the scripts below. ***There is no need to run ``install_miniconda_macos.sh`` if Anaconda Python is already installed.***
139
-
140
-
```
141
-
git clone https://github.com/devsim/devsim.git
142
-
cd devsim
143
-
git submodule init
144
-
git submodule update
145
-
source scripts/install_miniconda_macos.sh
146
-
bash scripts/build_macos.sh gcc version
147
-
```
148
-
149
-
### Building on Windows
150
-
151
-
***Please note that the Windows build scripts will make changes to an existing MSYS 2 installation. It will also create new Anaconda environments.***
152
-
153
-
#### MSYS version
154
-
155
-
Please see ``appveyor.yml`` in the source directory for more information about the automated build process.
156
-
157
-
To build manually, the prerequisites are to have installed:
0 commit comments