1
0
Fork 0
mirror of https://github.com/ArtemSBulgakov/buildozer-action.git synced 2024-08-16 10:09:52 +02:00

Also check __init__ when installing from sources

This commit is contained in:
Artem Bulgakov 2020-07-20 22:22:15 +03:00
parent 088eb2bae0
commit fbd6553c7d

View file

@ -46,7 +46,7 @@ def install_buildozer(buildozer_version):
if buildozer_version == "stable": if buildozer_version == "stable":
# Install stable buildozer from PyPI # Install stable buildozer from PyPI
subprocess.check_call([*pip_install, "buildozer"]) subprocess.check_call([*pip_install, "buildozer"])
elif os.path.exists(buildozer_version): elif os.path.exists(buildozer_version) and os.path.exists(os.path.join(buildozer_version, "buildozer", "__init__.py")):
# Install from local directory # Install from local directory
subprocess.check_call([*pip_install, buildozer_version]) subprocess.check_call([*pip_install, buildozer_version])
elif buildozer_version.startswith("git+"): elif buildozer_version.startswith("git+"):