We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78dbd42 commit a431aa2Copy full SHA for a431aa2
1 file changed
pythonforandroid/recipe.py
@@ -1249,8 +1249,10 @@ class PyProjectRecipe(PythonRecipe):
1249
1250
def get_pip_name(self):
1251
name_str = self.name
1252
- if self.name not in self.ctx.use_prebuilt_version_for:
1253
- name_str += f"=={self.version}"
+ if self.name not in self.ctx.use_prebuilt_version_for and self.version is not None:
+ # Like: v2.3.0 -> 2.3.0
1254
+ cleaned_version = self.version.replace("v", "")
1255
+ name_str += f"=={cleaned_version}"
1256
return name_str
1257
1258
def get_pip_install_args(self, arch):
0 commit comments