Skip to content

Commit b481dea

Browse files
b57: Linux compatibility
1 parent 1c5d638 commit b481dea

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

System/OS/Shell/commands.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010

1111
{ "name": "prsh",
12-
"desc": "The legacy Print Shell ported to vNext."
12+
"desc": "v0.2.0 port of the Print Shell from v0.1.5."
1313
},
1414

1515
{ "name": "clear",

System/OS/libs/pip.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import os, sys, subprocess
1+
import os, sys, subprocess, platform
22

33
system = sys.platform
44

@@ -9,10 +9,14 @@ def install(*packages):
99
elif system == "linux":
1010
try:
1111
subprocess.run(['pip'], check = True)
12+
print("\n\n")
1213
except subprocess.CalledProcessError:
1314
os.system('sudo apt install -y python3-pip')
14-
15-
os.system(f'pip install {package}')
15+
if ('arch' in platform.release()): # Arch Linux
16+
print("Arch Linux system detected, installing 'python-tqdm' from pacman.")
17+
os.system('sudo pacman -S python-tqdm')
18+
else:
19+
os.system(f'pip install {package}')
1620

1721
def upgrade(*packages):
1822
for package in packages:

System/system.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"PyOS" : [
33
{
4-
"system_version": "0.2.0 Release Candidate 2.1",
5-
"system_semantic": "0.2.0-rc.2.1",
4+
"system_version": "0.2.0 Release Candidate 3",
5+
"system_semantic": "0.2.0-rc.3",
66
"system_codename": "Version Next",
77
"kernel_version": "1.0"
88
}

0 commit comments

Comments
 (0)