Compare commits
No commits in common. "cb3fd1de1a81a25430a86311cbd31960255bbcc0" and "dafde6dda27f9d87e4ee1d4391aec528419cae33" have entirely different histories.
cb3fd1de1a
...
dafde6dda2
@ -7,8 +7,5 @@ Class {
|
|||||||
{ #category : #baseline }
|
{ #category : #baseline }
|
||||||
BaselineOfExtEnvi >> baseline: spec [
|
BaselineOfExtEnvi >> baseline: spec [
|
||||||
<baseline>
|
<baseline>
|
||||||
^ spec
|
^ spec for: #common do: [ spec package: 'ExtEnvi' ]
|
||||||
for: #common
|
|
||||||
do: [ spec package: 'GToolkit-Utility-System'.
|
|
||||||
spec package: 'ExtEnvi' with: [ spec requires: #('GToolkit-Utility-System') ] ]
|
|
||||||
]
|
]
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
Extension { #name : #ByteString }
|
|
||||||
|
|
||||||
{ #category : #'*ExtEnvi' }
|
|
||||||
ByteString >> parsePipInstallStdout [
|
|
||||||
^ self lines collect: [ :line | line splitOn: ':' ]
|
|
||||||
]
|
|
@ -57,19 +57,18 @@ PyEnv >> install: packageName [
|
|||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
PyEnv >> install: aPackageName in: anEnvDirName [
|
PyEnv >> install: aPackageName in: anEnvDirName [
|
||||||
| bins pip stdout |
|
| bins pip |
|
||||||
(envs includesKey: anEnvDirName)
|
(envs includesKey: anEnvDirName)
|
||||||
ifFalse: [ InformDebugger inform: 'Env doesn''t exist'.
|
ifFalse: [ InformDebugger inform: 'Env doesn''t exist'.
|
||||||
^ self ].
|
^ self ].
|
||||||
bins := (envs at: anEnvDirName) / 'bin'.
|
bins := (envs at: anEnvDirName) / 'bin'.
|
||||||
pip := (bins / 'pip') fullName.
|
pip := (bins / 'pip') fullName.
|
||||||
stdout := GtSubprocessWithInMemoryOutput new
|
^ GtSubprocessWithInMemoryOutput new
|
||||||
workingDirectory: workingDirectory;
|
workingDirectory: workingDirectory;
|
||||||
command: pip;
|
command: pip;
|
||||||
arguments: #('install' 'instaloader');
|
arguments: #('install' 'instaloader');
|
||||||
runAndWait;
|
runAndWait;
|
||||||
stdout.
|
stdout
|
||||||
^ stdout parsePipInstallStdout
|
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
|
Loading…
Reference in New Issue
Block a user