Skip to content

Commit a431aa2

Browse files
committed
fix version string
1 parent 78dbd42 commit a431aa2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pythonforandroid/recipe.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,8 +1249,10 @@ class PyProjectRecipe(PythonRecipe):
12491249

12501250
def get_pip_name(self):
12511251
name_str = self.name
1252-
if self.name not in self.ctx.use_prebuilt_version_for:
1253-
name_str += f"=={self.version}"
1252+
if self.name not in self.ctx.use_prebuilt_version_for and self.version is not None:
1253+
# Like: v2.3.0 -> 2.3.0
1254+
cleaned_version = self.version.replace("v", "")
1255+
name_str += f"=={cleaned_version}"
12541256
return name_str
12551257

12561258
def get_pip_install_args(self, arch):

0 commit comments

Comments
 (0)