diff --git a/pkg.info b/pkg.info index ec849a9..a78e25c 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,10 @@ name: python-markupsafe description: Implements a XML/HTML/XHTML Markup safe string for Python version: 2.1.5 -revision: 2 +revision: 3 url: https://palletsprojects.com/p/markupsafe/ license: BSD-3-Clause architecture: any -depends: ["python3"] -make_depends: ["python3","python-setuptools","python-wheel"] +depends: ["glibc","python3"] +make_depends: ["python-build","python-installer","python-setuptools","python-wheel"] type: source diff --git a/source.sh b/source.sh index 139293c..b90dc52 100644 --- a/source.sh +++ b/source.sh @@ -15,11 +15,14 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { - pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD + python3 -m build --wheel --no-isolation . } # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { - pip3 install --root="$BPM_OUTPUT" --ignore-installed --no-index --no-user --find-links dist Markupsafe + python3 -m installer --destdir "$BPM_OUTPUT" dist/*.whl + + # Install package license + install -Dm644 "$BPM_SOURCE"/LICENSE.rst "$BPM_OUTPUT"/usr/share/licenses/python-markupsafe/LICENSE.rst }