Commit 19278d0a authored by J. Fernando Sánchez's avatar J. Fernando Sánchez
Browse files

Use the right version of PIP (py2/py3)

Closes #47
parent 694201d8
...@@ -25,6 +25,7 @@ from senpy.extensions import Senpy ...@@ -25,6 +25,7 @@ from senpy.extensions import Senpy
import logging import logging
import os import os
import sys
import argparse import argparse
import senpy import senpy
...@@ -88,6 +89,7 @@ def main(): ...@@ -88,6 +89,7 @@ def main():
args = parser.parse_args() args = parser.parse_args()
if args.version: if args.version:
print('Senpy version {}'.format(senpy.__version__)) print('Senpy version {}'.format(senpy.__version__))
print(sys.version)
exit(1) exit(1)
logging.basicConfig() logging.basicConfig()
rl = logging.getLogger() rl = logging.getLogger()
......
...@@ -210,7 +210,7 @@ def install_deps(*plugins): ...@@ -210,7 +210,7 @@ def install_deps(*plugins):
for info in plugins: for info in plugins:
requirements = info.get('requirements', []) requirements = info.get('requirements', [])
if requirements: if requirements:
pip_args = ['pip'] pip_args = [sys.executable, '-m', 'pip']
pip_args.append('install') pip_args.append('install')
pip_args.append('--use-wheel') pip_args.append('--use-wheel')
for req in requirements: for req in requirements:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment