Skip to content

Commit

Permalink
Upgrade itsdangerous recipe to 2.2.0
Browse files Browse the repository at this point in the history
itsdangerous version 2.2.0 eliminated their setup.py, so all
toolchain builds of itsdangerous fails due to missing setup.py.

This patch updates the recipe for itsdangerous to run pip to
install the 2.2.0 version.
  • Loading branch information
hemna committed Nov 18, 2024
1 parent 1a8d21a commit b43cd08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kivy_ios/recipes/itsdangerous/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@


class ItsDangerousRecipe(PythonRecipe):
version = "1.1.0"
version = "2.2.0"
url = "https://github.com/mitsuhiko/itsdangerous/archive/{version}.zip"
depends = ["python"]

def install(self):
plat = list(self.platforms_to_build)[0]
build_dir = self.get_build_dir(plat)
hostpython = sh.Command(self.ctx.hostpython)
hostpython_pip = sh.Command(join(self.ctx.dist_dir, "hostpython3", "bin", "pip3"))
build_env = plat.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python3")
build_env['PYTHONPATH'] = self.ctx.site_packages_dir
with cd(build_dir):
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
shprint(hostpython_pip, "install", build_dir, "--prefix", dest_dir, _env=build_env)


recipe = ItsDangerousRecipe()

0 comments on commit b43cd08

Please sign in to comment.