Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy committed Apr 12, 2019
1 parent d5a0b7a commit 43b24ab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dev_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ def create_virtualenv(venv_exe, pyexe, venv) -> None:
logging.warn("Skipping creation of virtualenv")
return
check_call([venv_exe, '-p', pyexe, venv])
activate_this_py = os.path.join(venv, 'bin', 'activate_this.py')
# Activate virtualenv in this interpreter
exec(open(activate_this_py).read(), dict(__file__=activate_this_py))
check_call(['pip', 'install', '--upgrade','--force-reinstall', '-e', 'python'])
check_call(['pip', 'install', '-r', 'tests/requirements.txt'])
# TODO: Activate virtualenv in this interpreter, this is not working as it is.
#activate_this_py = os.path.join(venv, 'bin', 'activate_this.py')
#exec(open(activate_this_py).read(), dict(__file__=activate_this_py))
#check_call(['pip', 'install', '--upgrade','--force-reinstall', '-e', 'python'])
#check_call(['pip', 'install', '-r', 'tests/requirements.txt'])

def create_virtualenv_default():
create_virtualenv('virtualenv', DEFAULT_PYTHON, DEFAULT_PYENV)
logging.info("You can use the virtualenv by executing 'source %s/bin/activate'", DEFAULT_PYENV)
logging.info("You can use the virtualenv by executing 'source %s/bin/activate && pip install -e python'", DEFAULT_PYENV)

COMMANDS = OrderedDict([
('[Local] BUILD CMake/Ninja (using cmake_options.yaml (cp cmake/cmake_options.yml .) and edit) ({} virtualenv in "{}")'.format(DEFAULT_PYTHON, DEFAULT_PYENV),
Expand Down

0 comments on commit 43b24ab

Please sign in to comment.