Skip to content

Conversation

sergeyklay
Copy link
Contributor

@sergeyklay sergeyklay commented Dec 2, 2019

In my case, both tools are installed via pip using virtual env (~/.venv/local/bin/python) and symlinked to ~/.local/bin. It is only way to get them worked

@StableCoder
Copy link
Owner

Could this also be accomplished by modifying the local PATH environment variable? I'm pretty sure that is what CMake uses to search with.

@sergeyklay
Copy link
Contributor Author

You're right! Modifying my ~/.zprofile does the trick:

[ -z "$VIRTUAL_ENV" ] && {
  # Use local Python by default
  [ -f "$HOME/.venv/local/bin/activate" ] && {
    # Amending path
    path+=("$HOME/.venv/local/bin")
    source "$HOME/.venv/local/bin/activate"
  }
}

@sergeyklay sergeyklay closed this Dec 3, 2019
@sergeyklay sergeyklay deleted the patch-1 branch December 3, 2019 23:06
sergeyklay added a commit to zephir-lang/zephirc that referenced this pull request Dec 3, 2019
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