Compare commits
2 Commits
8df3458b2a
...
8c0795eb9c
Author | SHA1 | Date | |
---|---|---|---|
8c0795eb9c | |||
2fa871addf |
@ -6,7 +6,7 @@ A python lib came from [Difficult Rocket](https://github.com/shenjackyuanjie/Dif
|
|||||||
|
|
||||||
## Information/信息
|
## Information/信息
|
||||||
|
|
||||||
- Version / 版本: 0.2.0-rc.9
|
- Version / 版本: 0.2.0
|
||||||
- Author / 作者: shenjackyuanjie <3695888@qq.com>
|
- Author / 作者: shenjackyuanjie <3695888@qq.com>
|
||||||
|
|
||||||
> [shenjackyuanjie](https://github.com/shenjackyuanjie)
|
> [shenjackyuanjie](https://github.com/shenjackyuanjie)
|
||||||
|
@ -1,5 +1,13 @@
|
|||||||
# Change log / 更新日志
|
# Change log / 更新日志
|
||||||
|
|
||||||
|
## 0.2.0-rc.10
|
||||||
|
|
||||||
|
### lndl-nuitka
|
||||||
|
|
||||||
|
- 将 `lndl-nuitka` 中的 `subprocess.run` 方法修改为
|
||||||
|
- Linux / MacOS: `subprocess.run(shell=False)`
|
||||||
|
- Windows: `subprocess.run(shell=True)`
|
||||||
|
|
||||||
## 0.2.0-rc.9
|
## 0.2.0-rc.9
|
||||||
|
|
||||||
### lndl-nuitka
|
### lndl-nuitka
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# All rights reserved
|
# All rights reserved
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
|
|
||||||
__version__ = '0.2.0-rc.9'
|
__version__ = '0.2.0'
|
||||||
|
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
# -------------------------------
|
# -------------------------------
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
import platform
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
@ -92,7 +93,12 @@ def display_config(subprocess_command: list) -> None:
|
|||||||
|
|
||||||
def run_nuitka(subprocess_command: list) -> None:
|
def run_nuitka(subprocess_command: list) -> None:
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
subprocess.run(subprocess_command, shell=False, check=True)
|
# shell true on windows
|
||||||
|
# shell false on linux
|
||||||
|
if platform.system() == "Windows":
|
||||||
|
subprocess.run(subprocess_command, shell=True, check=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(subprocess_command, shell=False, check=True)
|
||||||
end_time = time.time()
|
end_time = time.time()
|
||||||
print(f"Time Elapsed: {end_time - start_time} seconds")
|
print(f"Time Elapsed: {end_time - start_time} seconds")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user