diff --git a/packages/python/devel/Jinja2/package.mk b/packages/python/devel/Jinja2/package.mk index 1ae9fff438..f2f1c953fc 100644 --- a/packages/python/devel/Jinja2/package.mk +++ b/packages/python/devel/Jinja2/package.mk @@ -9,9 +9,4 @@ PKG_SITE="https://pypi.org/project/Jinja2/" PKG_URL="https://files.pythonhosted.org/packages/source/${PKG_NAME:0:1}/${PKG_NAME}/${PKG_NAME,,}-${PKG_VERSION}.tar.gz" PKG_DEPENDS_HOST="Python3:host setuptools:host MarkupSafe:host" PKG_LONGDESC="Jinja is a fast, expressive, extensible templating engine." -PKG_TOOLCHAIN="manual" - -makeinstall_host() { - export DONT_BUILD_LEGACY_PYC=1 - exec_thread_safe python3 setup.py install --prefix=${TOOLCHAIN} -} +PKG_TOOLCHAIN="python" diff --git a/packages/python/devel/Jinja2/patches/0001-revert-setuptools-removal.patch b/packages/python/devel/Jinja2/patches/0001-revert-setuptools-removal.patch deleted file mode 100644 index 06be73f67a..0000000000 --- a/packages/python/devel/Jinja2/patches/0001-revert-setuptools-removal.patch +++ /dev/null @@ -1,116 +0,0 @@ -From 24f91e001d3b7b7037b2fb572a633f3a7fa7ca1c Mon Sep 17 00:00:00 2001 -From: Rudi Heitbaum -Date: Wed, 17 Jul 2024 11:19:20 +0000 -Subject: [PATCH] revert setuptools removal - ---- - setup.cfg | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ - setup.py | 8 ++++++ - 2 files changed, 89 insertions(+) - create mode 100644 setup.cfg - create mode 100644 setup.py - -diff --git a/setup.cfg b/setup.cfg -new file mode 100644 -index 0000000..b4531db ---- /dev/null -+++ b/setup.cfg -@@ -0,0 +1,81 @@ -+[metadata] -+name = Jinja2 -+version = attr: jinja2.__version__ -+url = https://palletsprojects.com/p/jinja/ -+project_urls = -+ Donate = https://palletsprojects.com/donate -+ Documentation = https://jinja.palletsprojects.com/ -+ Changes = https://jinja.palletsprojects.com/changes/ -+ Source Code = https://github.com/pallets/jinja/ -+ Issue Tracker = https://github.com/pallets/jinja/issues/ -+ Chat = https://discord.gg/pallets -+license = BSD-3-Clause -+license_files = LICENSE.rst -+maintainer = Pallets -+maintainer_email = contact@palletsprojects.com -+description = A very fast and expressive template engine. -+long_description = file: README.rst -+long_description_content_type = text/x-rst -+classifiers = -+ Development Status :: 5 - Production/Stable -+ Environment :: Web Environment -+ Intended Audience :: Developers -+ License :: OSI Approved :: BSD License -+ Operating System :: OS Independent -+ Programming Language :: Python -+ Topic :: Internet :: WWW/HTTP :: Dynamic Content -+ Topic :: Text Processing :: Markup :: HTML -+ -+[options] -+packages = find: -+package_dir = = src -+include_package_data = True -+python_requires = >= 3.7 -+# Dependencies are in setup.py for GitHub's dependency graph. -+ -+[options.packages.find] -+where = src -+ -+[options.entry_points] -+babel.extractors = -+ jinja2 = jinja2.ext:babel_extract[i18n] -+ -+[tool:pytest] -+testpaths = tests -+filterwarnings = -+ error -+ -+[coverage:run] -+branch = True -+source = -+ jinja2 -+ tests -+ -+[coverage:paths] -+source = -+ src -+ */site-packages -+ -+[mypy] -+files = src/jinja2 -+python_version = 3.7 -+show_error_codes = True -+disallow_subclassing_any = True -+disallow_untyped_calls = True -+disallow_untyped_defs = True -+disallow_incomplete_defs = True -+no_implicit_optional = True -+local_partial_types = True -+no_implicit_reexport = True -+strict_equality = True -+warn_redundant_casts = True -+warn_unused_configs = True -+warn_unused_ignores = True -+warn_return_any = True -+warn_unreachable = True -+ -+[mypy-jinja2.defaults] -+no_implicit_reexport = False -+ -+[mypy-markupsafe] -+no_implicit_reexport = False -diff --git a/setup.py b/setup.py -new file mode 100644 -index 0000000..79d0708 ---- /dev/null -+++ b/setup.py -@@ -0,0 +1,8 @@ -+from setuptools import setup -+ -+# Metadata goes in setup.cfg. These are here for GitHub's dependency graph. -+setup( -+ name="Jinja2", -+ install_requires=["MarkupSafe>=2.0"], -+ extras_require={"i18n": ["Babel>=2.7"]}, -+) --- -2.43.0 -