Switch away from pip3 for module installation and add license
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
name: python-jinja
|
name: python-jinja
|
||||||
description: A simple pythonic template language written in Python
|
description: A simple pythonic template language written in Python
|
||||||
version: 3.1.3
|
version: 3.1.3
|
||||||
revision: 2
|
revision: 3
|
||||||
url: https://jinja.palletsprojects.com/en/3.1.x/
|
url: https://jinja.palletsprojects.com/en/3.1.x/
|
||||||
license: BSD-3-Clause
|
license: BSD-3-Clause
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["python-markupsafe","python3"]
|
depends: ["python3","python-markupsafe"]
|
||||||
make_depends: ["python-markupsafe","python3","python-setuptools","python-wheel"]
|
make_depends: ["python-build","python-flit-core","python-installer","python-setuptools","python-wheel"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -15,11 +15,14 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
|
python -m build --wheel --no-isolation .
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
pip3 install --root="$BPM_OUTPUT" --ignore-installed --no-deps --no-index --no-user --find-links dist Jinja2
|
python3 -m installer --destdir "$BPM_OUTPUT" dist/*.whl
|
||||||
|
|
||||||
|
# Install package license
|
||||||
|
install -Dm644 LICENSE.rst "$BPM_OUTPUT"/usr/share/licenses/python-jinja/LICENSE.rst
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user