|
12 | 12 | from pythonforandroid.util import ( |
13 | 13 | current_directory, |
14 | 14 | ensure_dir, |
15 | | - get_virtualenv_executable, |
16 | 15 | BuildInterruptingException, |
17 | 16 | ) |
18 | 17 | from pythonforandroid.logger import info, warning, info_notify, info_main, shprint |
@@ -417,9 +416,7 @@ def prepare_build_environment( |
417 | 416 | if not self.ccache: |
418 | 417 | info("ccache is missing, the build will not be optimized in the " "future.") |
419 | 418 | try: |
420 | | - subprocess.check_output( |
421 | | - ["python3", "-m", "cython", "--help",] |
422 | | - ) |
| 419 | + subprocess.check_output(["python3", "-m", "cython", "--help"]) |
423 | 420 | except subprocess.CalledProcessError: |
424 | 421 | warning( |
425 | 422 | "Cython for python3 missing. If you are building for " |
@@ -852,15 +849,7 @@ def run_pymodules_install(ctx, modules, project_dir=None, ignore_setup_py=False) |
852 | 849 | # Use our hostpython to create the virtualenv |
853 | 850 | host_python = sh.Command(ctx.hostpython) |
854 | 851 | with current_directory(join(ctx.build_dir)): |
855 | | - # shprint(host_python, '-m', 'venv', 'venv') |
856 | | - |
857 | | - shprint( |
858 | | - venv, |
859 | | - "--python=python{}".format( |
860 | | - ctx.python_recipe.major_minor_version_string.partition(".")[0] |
861 | | - ), |
862 | | - "venv", |
863 | | - ) |
| 852 | + shprint(host_python, "-m", "venv", "venv") |
864 | 853 |
|
865 | 854 | # Prepare base environment and upgrade pip: |
866 | 855 | base_env = dict(copy.copy(os.environ)) |
|
0 commit comments