Compare commits

..

No commits in common. "cb3fd1de1a81a25430a86311cbd31960255bbcc0" and "dafde6dda27f9d87e4ee1d4391aec528419cae33" have entirely different histories.

3 changed files with 8 additions and 18 deletions

View File

@ -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' ]
]

View File

@ -1,6 +0,0 @@
Extension { #name : #ByteString }
{ #category : #'*ExtEnvi' }
ByteString >> parsePipInstallStdout [
^ self lines collect: [ :line | line splitOn: ':' ]
]

View File

@ -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
^ GtSubprocessWithInMemoryOutput new
workingDirectory: workingDirectory;
command: pip;
arguments: #('install' 'instaloader');
runAndWait;
stdout.
^ stdout parsePipInstallStdout
stdout
]
{ #category : #accessing }