Skip to content

Second Try: Environment: improve/fix getting sys.prefix #1176

Merged
davidhalter merged 2 commits intomasterfrom
env
Jul 15, 2018
Merged

Second Try: Environment: improve/fix getting sys.prefix #1176
davidhalter merged 2 commits intomasterfrom
env

Conversation

@davidhalter
Copy link
Copy Markdown
Owner

@davidhalter davidhalter commented Jul 15, 2018

Instead of #1108 I propose this change. It involves pretty much all of what @blueyed did there, but with a different approach about creating subprocesses. I think I cleaned up a mistake we made.

The issue was that if something changed about the environment (e.g. version
switch) or sys.path change, re-creating the environment was possible, but did
not involve the change. The environments have now a __del__ function that
deletes the subprocess after every time an Environment is garbage collected.

blueyed and others added 2 commits July 10, 2018 12:46
It only takes `executable` and gets all the information from the
subprocess directly.

Fixes #1107.
The issue was that if something changed about the environment (e.g. version
switch) or sys.path change, re-creating the environment was possible, but did
not involve the change. The environments have now a __del__ function that
deletes the subprocess after every time an Environment is garbage collected.
@davidhalter davidhalter changed the title Env Second Try: Environment: improve/fix getting sys.prefix Jul 15, 2018
@blueyed
Copy link
Copy Markdown
Contributor

blueyed commented Jul 15, 2018

LGTM, rebasing on master should fix AppVeyor then (py33), no?

@davidhalter
Copy link
Copy Markdown
Owner Author

The PR passed, it's only the branch that failed, so I guess it was fixed by rebasing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants