Skip to content

Commit 5899a0b

Browse files
committed
V1.5.0 merge
2 parents 58f9d99 + c131329 commit 5899a0b

File tree

20 files changed

+376
-32
lines changed

20 files changed

+376
-32
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.github/workflows/automaticBuilding.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
VERSION: ${{ steps.get-tag.outputs.VERSION }}
8080

8181
build-linux-ubuntu:
82-
runs-on: ubuntu-22.04
82+
runs-on: ubuntu-20.04
8383

8484
steps:
8585
- name: Checkout code

.github/workflows/automaticBuildingLinux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77
contents: write
88
jobs:
99
build-linux-ubuntu:
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-20.04
1111

1212
steps:
1313
- name: Checkout code

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ dmypy.json
145145
pythonCode/submodules/MEDimage/*
146146
pythonCode/submodules/MEDprofiles/*
147147

148-
# Go executables
148+
# Go executables
149149
go_server/main
150150
go_server/main.exe
151151

build/.DS_Store

-2 KB
Binary file not shown.

go_server/main

-709 KB
Binary file not shown.

main/utils/pythonEnv.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export function getBundledPythonEnvironment() {
187187
}
188188

189189
export async function installRequiredPythonPackages(mainWindow) {
190-
let requirementsFileName = process.platform === "darwin" ? "requirements_mac.txt" : "requirements.txt"
190+
let requirementsFileName = "merged_requirements.txt"
191191
if (process.env.NODE_ENV === "production") {
192192
installPythonPackage(mainWindow, pythonExecutablePath, null, path.join(process.cwd(), "resources", "pythonEnv", requirementsFileName))
193193
} else {
@@ -208,6 +208,12 @@ function comparePythonInstalledPackages(pythonPackages, requirements) {
208208
if (pythonPackage.name === requirementName && pythonPackage.version === requirementVersion) {
209209
found = true
210210
break
211+
} else if (pythonPackage.name.replace('-', '_') === requirementName && pythonPackage.version === requirementVersion) {
212+
found = true
213+
break
214+
} else if (pythonPackage.name.replace('_', '-') === requirementName && pythonPackage.version === requirementVersion) {
215+
found = true
216+
break
211217
}
212218
}
213219
if (!found) {
@@ -360,9 +366,9 @@ export async function installBundledPythonExecutable(mainWindow) {
360366

361367
// Install the required python packages
362368
if (process.env.NODE_ENV === "production") {
363-
installPythonPackage(mainWindow, pythonExecutablePath, null, path.join(process.cwd(), "resources", "pythonEnv", "requirements.txt"))
369+
installPythonPackage(mainWindow, pythonExecutablePath, null, path.join(process.cwd(), "resources", "pythonEnv", "merged_requirements.txt"))
364370
} else {
365-
installPythonPackage(mainWindow, pythonExecutablePath, null, path.join(process.cwd(), "pythonEnv", "requirements.txt"))
371+
installPythonPackage(mainWindow, pythonExecutablePath, null, path.join(process.cwd(), "pythonEnv", "merged_requirements.txt"))
366372
}
367373
let removeCommand = `rm ${outputFileName}`
368374
let removePromise = exec(removeCommand, { shell: "powershell.exe" })
@@ -429,9 +435,9 @@ export async function installBundledPythonExecutable(mainWindow) {
429435
console.log("process.resourcesPath: ", process.resourcesPath)
430436
// Install the required python packages
431437
if (process.env.NODE_ENV === "production") {
432-
installPythonPackage(mainWindow, pythonExecutablePath, null, path.join(process.resourcesPath, "pythonEnv", "requirements.txt"))
438+
installPythonPackage(mainWindow, pythonExecutablePath, null, path.join(process.resourcesPath, "pythonEnv", "merged_requirements.txt"))
433439
} else {
434-
installPythonPackage(mainWindow, pythonExecutablePath, null, path.join(process.cwd(), "pythonEnv", "requirements.txt"))
440+
installPythonPackage(mainWindow, pythonExecutablePath, null, path.join(process.cwd(), "pythonEnv", "merged_requirements.txt"))
435441
}
436442
}
437443
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"name": "medomicslab-application",
44
"description": "MEDomicsLab application",
5-
"version": "1.0.0",
5+
"version": "1.5.0",
66
"author": "MEDomicsLab Team",
77
"main": "app/background.js",
88
"build": {

pythonCode/submodules/MEDimage

Submodule MEDimage deleted from 24511d9

pythonCode/submodules/MEDprofiles

Submodule MEDprofiles deleted from 50b2093

0 commit comments

Comments
 (0)