Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Fix package installation in virtualenv and conda #1640

Merged
merged 3 commits into from
Oct 22, 2019

Conversation

ultmaster
Copy link
Contributor

Fix #1576.

@ultmaster ultmaster changed the base branch from master to v1.1 October 21, 2019 13:13

def check_output_command(file_path, head=None, tail=None):
'''call check_output command to read content from a file'''
"""call check_output command to read content from a file"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since you changed docstring format, I recommend you update the docstring following the discussed format :)

python = "python" if sys.platform == "win32" else "python3"
ret = [python, "-m", "pip", "install"]
if "CONDA_DEFAULT_ENV" not in os.environ and "VIRTUAL_ENV" not in os.environ:
ret.append("--user") # not in virtualenv or conda
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if install as root?

@liuzhe-lz liuzhe-lz merged commit 5557a2e into microsoft:v1.1 Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants