1 # Build recipe for setuptools.
3 # Copyright (C) 2020-2023 Matias Fonzo, <selk@dragora.org>.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # Exit immediately on any error
24 pkgname=python-${program}
26 # Define a category for the output of the package name
29 tarname=${program}-${version}.tar.gz
32 fetch=https://files.pythonhosted.org/packages/b6/21/cb9a8d0b2c8597c83fce8e9c02884bce3d4951e41e807fc35791c6b23d9a/$tarname
35 Easily build and distribute Python packages.
37 Setuptools is a fully-featured, actively-maintained, and stable library
38 designed to facilitate packaging Python projects, where packaging
41 - Python package and module definitions
42 - Distribution package metadata
44 - Project installation
45 - Platform-specific details
48 For more information, see https://setuptools.readthedocs.io/en/latest/
51 homepage=https://pypi.org/project/setuptools/
54 docs="CHANGES* LICENSE* PKG-INFO README*"
55 docsdir="${docdir}/${pkgname}-${version}"
59 unpack "${tardir}/$tarname"
63 # Set sane permissions
64 chmod -R u+w,go-w,a+rX-s .
66 python3 setup.py build
67 python3 setup.py install --prefix=/usr --root="$destdir" --optimize=1
70 mkdir -p "${destdir}/$docsdir"
71 cp -p $docs "${destdir}/$docsdir"