From ccc722b7ed330198d82a3cf28ead76d6d107a70a Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 6 Jun 2022 21:25:48 +0000 Subject: added java --- repo/python-wheel/python-wheel.xibuild | 25 +++++++++++++++++++++++++ repo/python-wheel/use-system-packaging.patch | 21 +++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 repo/python-wheel/python-wheel.xibuild create mode 100644 repo/python-wheel/use-system-packaging.patch (limited to 'repo/python-wheel') diff --git a/repo/python-wheel/python-wheel.xibuild b/repo/python-wheel/python-wheel.xibuild new file mode 100644 index 0000000..02b36a8 --- /dev/null +++ b/repo/python-wheel/python-wheel.xibuild @@ -0,0 +1,25 @@ +#!/bin/sh + +NAME="python-wheel" +DESC="built-package format for Python" + +MAKEDEPS="python " +DEPS="python-packaging " + +PKG_VER=0.37.1 +SOURCE="https://files.pythonhosted.org/packages/source/w/wheel/wheel-$PKG_VER.tar.gz" +ADDITIONAL="use-system-packaging.patch " + +prepare () { + apply_patches +} + +build() { + rm -rf src/wheel/vendored + + python3 setup.py build +} + +package() { + python3 setup.py install --prefix=/usr --root="$PKG_DEST" +} diff --git a/repo/python-wheel/use-system-packaging.patch b/repo/python-wheel/use-system-packaging.patch new file mode 100644 index 0000000..8944566 --- /dev/null +++ b/repo/python-wheel/use-system-packaging.patch @@ -0,0 +1,21 @@ +Upstream vendors packaging, use system packaging instead + +diff --git a/src/wheel/bdist_wheel.py b/src/wheel/bdist_wheel.py +index 80e43d0..6bb272c 100644 +--- a/src/wheel/bdist_wheel.py ++++ b/src/wheel/bdist_wheel.py +@@ -19,13 +19,13 @@ from glob import iglob + from shutil import rmtree + from sysconfig import get_config_var + from zipfile import ZIP_DEFLATED, ZIP_STORED ++from packaging import tags + + import pkg_resources + + from .pkginfo import write_pkg_info + from .macosx_libfile import calculate_macosx_platform_tag + from .metadata import pkginfo_to_metadata +-from .vendored.packaging import tags + from .wheelfile import WheelFile + from . import __version__ as wheel_version + -- cgit v1.2.1