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