Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is a recipe for mysql-connector-python #2974

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
17 changes: 17 additions & 0 deletions pythonforandroid/recipes/mysql-connector-python/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from pythonforandroid.recipe import CompiledComponentsPythonRecipe


class MySQLConnectorPythonRecipe(CompiledComponentsPythonRecipe):

name = 'mysql-connector-python'
version = '8.3.0'
url = (
f"https://downloads.mysql.com/archives/get/p/29/file/"
f"mysql-connector-python-py{version}-1ubuntu23.10_amd64.deb"
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is giving a 404

wget https://downloads.mysql.com/archives/get/p/29/file/mysql-connector-python-py8.3.0-1ubuntu23.10_amd64.deb

Why didn't you keep it as :

https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-{version}-src.tar.gz

Or with line split:

    url = (
        "https://dev.mysql.com/get/Downloads/Connector-Python/"
        f"mysql-connector-python-{version}-src.tar.gz"
    )

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i change the link to url = (
"https://dev.mysql.com/get/Downloads/Connector-Python/"
f"mysql-connector-python-{version}-src.tar.gz"
). Thank you! i home this time will work!

call_hostpython_via_targetpython = False

depends = ['python3', 'setuptools']


recipe = MySQLConnectorPythonRecipe()
Loading