Skip to content

Commit 86cc92b

Browse files
committed
Fix venv openssl missing
1 parent acaa01d commit 86cc92b

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

pythonforandroid/build.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from pythonforandroid.util import (
1313
current_directory,
1414
ensure_dir,
15-
get_virtualenv_executable,
1615
BuildInterruptingException,
1716
)
1817
from pythonforandroid.logger import info, warning, info_notify, info_main, shprint
@@ -417,9 +416,7 @@ def prepare_build_environment(
417416
if not self.ccache:
418417
info("ccache is missing, the build will not be optimized in the " "future.")
419418
try:
420-
subprocess.check_output(
421-
["python3", "-m", "cython", "--help",]
422-
)
419+
subprocess.check_output(["python3", "-m", "cython", "--help"])
423420
except subprocess.CalledProcessError:
424421
warning(
425422
"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)
852849
# Use our hostpython to create the virtualenv
853850
host_python = sh.Command(ctx.hostpython)
854851
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")
864853

865854
# Prepare base environment and upgrade pip:
866855
base_env = dict(copy.copy(os.environ))

0 commit comments

Comments
 (0)