addftool 0.2.14__py3-none-any.whl → 0.2.15__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- addftool/tool.py +8 -0
- {addftool-0.2.14.dist-info → addftool-0.2.15.dist-info}/METADATA +1 -1
- {addftool-0.2.14.dist-info → addftool-0.2.15.dist-info}/RECORD +6 -6
- {addftool-0.2.14.dist-info → addftool-0.2.15.dist-info}/WHEEL +0 -0
- {addftool-0.2.14.dist-info → addftool-0.2.15.dist-info}/entry_points.txt +0 -0
- {addftool-0.2.14.dist-info → addftool-0.2.15.dist-info}/top_level.txt +0 -0
addftool/tool.py
CHANGED
|
@@ -21,6 +21,11 @@ def init_vscode():
|
|
|
21
21
|
execute_command(f"code --install-extension {ext}")
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
def clean_py312_externally_managed():
|
|
25
|
+
if os.path.exists("/usr/lib/python3.12/EXTERNALLY-MANAGED") and os.name == 'posix' and os.getuid() == 0:
|
|
26
|
+
execute_command("rm /usr/lib/python3.12/EXTERNALLY-MANAGED")
|
|
27
|
+
|
|
28
|
+
|
|
24
29
|
def add_alias():
|
|
25
30
|
# add to ~/.bashrc
|
|
26
31
|
|
|
@@ -62,11 +67,14 @@ def main():
|
|
|
62
67
|
execute_command('git config --global user.email "addf400@foxmail.com"')
|
|
63
68
|
elif to_do == 'alias':
|
|
64
69
|
add_alias()
|
|
70
|
+
elif to_do == 'clean_py312':
|
|
71
|
+
clean_py312_externally_managed()
|
|
65
72
|
elif to_do == 'all':
|
|
66
73
|
init_vscode()
|
|
67
74
|
execute_command('git config --global user.name "addf400"')
|
|
68
75
|
execute_command('git config --global user.email "addf400@foxmail.com"')
|
|
69
76
|
add_alias()
|
|
77
|
+
clean_py312_externally_managed()
|
|
70
78
|
else:
|
|
71
79
|
print("No such init option")
|
|
72
80
|
|
|
@@ -4,7 +4,7 @@ addftool/blob.py,sha256=RzPpIrBPNKr5KS4sScHFWqsYW9tA8EY-H0fSrlmns8w,15272
|
|
|
4
4
|
addftool/broadcast_folder.py,sha256=GQBuSL8Ch537V_fSBHesWyqT3KRYry68pbYOKy2bDj4,19619
|
|
5
5
|
addftool/sleep.py,sha256=kykcZR2tA0ZpRUwQf6IIUdJ4dYkolyD91FdriViq9Nc,11771
|
|
6
6
|
addftool/sync.py,sha256=ZpYxbM8uiPFrV7ODmOaM7asVPCWaxBixA-arVc-1kfs,14045
|
|
7
|
-
addftool/tool.py,sha256=
|
|
7
|
+
addftool/tool.py,sha256=5Q9CoLh2C5LhxC2thMMAMKnQdnW241Nig10iRFOIZcc,2346
|
|
8
8
|
addftool/util.py,sha256=zlNLu8Be8cGIpNRqBw8_0q7nFxWlsJ9cToN62ohjdXE,2335
|
|
9
9
|
addftool/deploy/__init__.py,sha256=UL8b-Idt7lStlMiOm8oTZ65fdzYz99Fgzq2Gaw8WsZc,1544
|
|
10
10
|
addftool/deploy/azure.py,sha256=_o_9Eh8cVwLDAqvfyRYBtQRHs_Gul-nCs2ZXttwO1bk,1301
|
|
@@ -13,8 +13,8 @@ addftool/deploy/vscode_server.py,sha256=tLtSvlcK2fEOaw6udWt8dNELVhwv9F59hF5DJJ-1
|
|
|
13
13
|
addftool/process/__init__.py,sha256=Dze8OrcyjQlAbPrjE_h8bMi8W4b3OJyZOjTucPrkJvM,3721
|
|
14
14
|
addftool/process/utils.py,sha256=JldxnwanLJOgxaPgmCJh7SeBRaaj5rFxWWxh1hpsvbA,2609
|
|
15
15
|
addftool/ssh/__init__.py,sha256=h5_rCO0A6q2Yw9vFguQZZp_ApAJsT1dcnKnbKKZ0cDM,4409
|
|
16
|
-
addftool-0.2.
|
|
17
|
-
addftool-0.2.
|
|
18
|
-
addftool-0.2.
|
|
19
|
-
addftool-0.2.
|
|
20
|
-
addftool-0.2.
|
|
16
|
+
addftool-0.2.15.dist-info/METADATA,sha256=MNHj48rJ5avJsWZ7x6mN7m4vX-7C8d9EOpICgeIb9Gk,221
|
|
17
|
+
addftool-0.2.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
18
|
+
addftool-0.2.15.dist-info/entry_points.txt,sha256=9lkmuWMInwUAtev8w8poNkNd7iML9Bjd5CBCFVxg2b8,111
|
|
19
|
+
addftool-0.2.15.dist-info/top_level.txt,sha256=jqj56-plrBbyzY0tIxB6wPzjAA8kte4hUlajyyQygN4,9
|
|
20
|
+
addftool-0.2.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|