Skip to content

Commit 4713b53

Browse files
specific version of pip
1 parent ccb3774 commit 4713b53

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,27 @@ If you need the developer version, you are on the right place.
1515
* 3- Navigate to GiD's problemtype folder and delete any previous kratos.gid
1616
* Create there a link to our [kratos.gid](./kratos.gid/) downloaded in step 1
1717
* Windows: Simple shortcut to kratos.gid folder
18-
* 4- Navigate to kratos.gid/exec/
19-
* Create there a symbolic link to the kratos installation folder (where runkratos is located)
20-
* Unix : `ln -s ~/Kratos Kratos` or maybe `ln -s ~/Kratos/bin/Release Kratos` if that's the destination folder
21-
* Windows : `mklink /J Kratos C:\kratos\bin\Release` (choose actual Kratos installation folder)
22-
18+
* 4- Choose your execution mode:
19+
* 4.1- To execute Kratos using the standard pip packages:
20+
*- Python version recommended: 3.9
21+
*- Open a terminal and run `python3 -m pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all==9.1.3`
22+
* 4.2- To execute Kratos using your compiled binaries:
23+
* Navigate to kratos.gid/exec/
24+
* Create there a symbolic link to the kratos installation folder (where runkratos is located)
25+
* Unix : `ln -s ~/Kratos Kratos` or maybe `ln -s ~/Kratos/bin/Release Kratos` if that's the destination folder
26+
* Windows : `mklink /J Kratos C:\kratos\bin\Release` (choose actual Kratos installation folder)
27+
* 4.3- To execute Kratos using docker, just install docker
2328
### Step by step video
2429
https://www.youtube.com/watch?v=zZq7ypDdudo
2530

26-
## Launch modea
31+
### Launch modes
2732
In Kratos preferences, select the execution mode:
2833
* Pip packages: Kratos will be installed via `pip install`
2934
* local compiled: If you are a developer and build your applications, use this one
3035
* docker: If you do not want to install any dependency, just run via docker!
3136
* The default image is [fjgarate/kratos-run](https://hub.docker.com/repository/docker/fjgarate/kratos-run)
3237

33-
## Usage
38+
### Usage
3439
* Run GiD
3540
* Go to: Data / Problem type / kratos
3641
* kratos top menu / Developer mode (recommended)

kratos.gid/exec/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Launch via pip",
55
"script": "pip",
6-
"pip_packages": "KratosMultiphysics-all",
6+
"pip_packages": "KratosMultiphysics-all==9.1.3",
77
"dependency_check": "Kratos::CheckDependenciesPipMode"
88
},
99
{

kratos.gid/scripts/Launch.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ proc Kratos::ShowErrorsAndActions {errs} {
119119
W "Pip is not installed on your system. Please install it."
120120
}
121121
"MISSING_PIP_PACKAGES" {
122-
W "Run the following command on a terminal:\npip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all"
122+
W "Run the following command on a terminal:\npip install --upgrade --force-reinstall --no-cache-dir $Kratos::pip_packages_required"
123123
}
124124
"DOCKER_NOT_FOUND" {
125125
W "Could not start docker. Please check if the Docker service is enabled."

0 commit comments

Comments
 (0)