dekshell 0.2.58__py3-none-any.whl → 0.2.59__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.
- dekshell/core/markers/pip_.py +7 -1
- {dekshell-0.2.58.dist-info → dekshell-0.2.59.dist-info}/METADATA +1 -1
- {dekshell-0.2.58.dist-info → dekshell-0.2.59.dist-info}/RECORD +5 -5
- {dekshell-0.2.58.dist-info → dekshell-0.2.59.dist-info}/WHEEL +0 -0
- {dekshell-0.2.58.dist-info → dekshell-0.2.59.dist-info}/entry_points.txt +0 -0
dekshell/core/markers/pip_.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import sys
|
|
1
2
|
from dektools.file import write_file, remove_path
|
|
2
3
|
from .base import MarkerWithEnd
|
|
3
4
|
|
|
@@ -6,8 +7,13 @@ class PipMarker(MarkerWithEnd):
|
|
|
6
7
|
tag_head = "_pip"
|
|
7
8
|
|
|
8
9
|
def execute(self, context, command, marker_node, marker_set):
|
|
10
|
+
operator = self.split_raw(command, 1)[-1].strip()
|
|
11
|
+
global_ = False
|
|
12
|
+
if operator in ('True', 'true', ''):
|
|
13
|
+
global_ = True
|
|
14
|
+
pip = 'pip' if global_ else f'{sys.executable} -m pip'
|
|
9
15
|
text = self.get_inner_content(context, marker_node, translate=None)
|
|
10
16
|
fp = write_file(s=text)
|
|
11
|
-
marker_set.shell_cmd(f'pip install -r {fp}')
|
|
17
|
+
marker_set.shell_cmd(f'{pip} install -r {fp}')
|
|
12
18
|
remove_path(fp)
|
|
13
19
|
return []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
dekshell-0.2.
|
|
2
|
-
dekshell-0.2.
|
|
3
|
-
dekshell-0.2.
|
|
1
|
+
dekshell-0.2.59.dist-info/METADATA,sha256=br2cBov9G__-AASyHVzfrPdLquqrQZHAeBNLp89ecQs,573
|
|
2
|
+
dekshell-0.2.59.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
|
3
|
+
dekshell-0.2.59.dist-info/entry_points.txt,sha256=d-kbfULiUTZWIBBsrQF3J_-wESncF-4K2rwHT08grlI,75
|
|
4
4
|
dekshell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
dekshell/click/__entry__.py,sha256=CMuxUzXoEe4TcHFZwv-MNFwHnu1HSZCDpXFpqQ814uM,42
|
|
6
6
|
dekshell/click/__init__.py,sha256=r-AHdO9CEEVvTN20-8Jozr6Zh8XSv_BnktYRwrlhtrE,2046
|
|
@@ -24,7 +24,7 @@ dekshell/core/markers/function.py,sha256=j8Cz4ouBQi_0dT6Q6pfJie-1rfIZuSIcWzGBlsK
|
|
|
24
24
|
dekshell/core/markers/if_.py,sha256=UqEnR0X9bKO7hEKol3MJNWXvP7fuJAGt8zwk3xlBCuk,1118
|
|
25
25
|
dekshell/core/markers/input.py,sha256=94SWaeLnwtxRdIn9Ck0IxMZL6vOXVCedUmsp5IPAwWo,1188
|
|
26
26
|
dekshell/core/markers/invoke.py,sha256=ESL2DE9DTaq33AnrXpvEudp1qtoeZFKOhLL12OQpcs0,1975
|
|
27
|
-
dekshell/core/markers/pip_.py,sha256=
|
|
27
|
+
dekshell/core/markers/pip_.py,sha256=F_l7sKxAdPBPsEfRTD8wo5cJLy3N9FGQHLD2nv29yiM,638
|
|
28
28
|
dekshell/core/markers/redirect.py,sha256=-w_qhdaHa1hIi-LjCmXpaYKZWrTitAiSawjEf8qjYt4,1989
|
|
29
29
|
dekshell/core/markers/shell.py,sha256=43BDAAzMdmgZmemkW5buh_w4LL1GDGw-s9fNZo6vhag,1929
|
|
30
30
|
dekshell/core/markers/var.py,sha256=yA2T8dq4vbfyeaV1KOUt3YZp51WTC623NviMAJTOdOQ,8182
|
|
@@ -37,4 +37,4 @@ dekshell/utils/cmd.py,sha256=K9FbXgHcGFchHA58xI0_t4YK4yb8XkWbxsNoztYRx3Y,518
|
|
|
37
37
|
dekshell/utils/pkg.py,sha256=TgYqRqawoJfjkxt6UAHnp9ttmpjuHiWRFbqxADOS1VE,1337
|
|
38
38
|
dekshell/utils/serializer.py,sha256=aIdF2Wzo-qHmIshv46jn1XD0X66vQ1JFdU-g3ZFbH2w,386
|
|
39
39
|
dekshell/utils/shell.py,sha256=0NoA2-SOOMinbmZZipwzL-npBbzPOdWEfdPVYqq5G5g,92
|
|
40
|
-
dekshell-0.2.
|
|
40
|
+
dekshell-0.2.59.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|