Fix broken installation
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: python-babel
|
name: python-babel
|
||||||
description: Integrated collection of utilities that assist in internationalizing and localizing Python applications
|
description: Integrated collection of utilities that assist in internationalizing and localizing Python applications
|
||||||
version: 2.17.0
|
version: 2.17.0
|
||||||
revision: 1
|
revision: 2
|
||||||
url: https://babel.pocoo.org/en/latest/
|
url: https://babel.pocoo.org/en/latest/
|
||||||
license: BSD-3-Clause
|
license: BSD-3-Clause
|
||||||
architecture: any
|
architecture: any
|
||||||
@@ -11,8 +11,6 @@ depends:
|
|||||||
- python3
|
- python3
|
||||||
- python-pytz
|
- python-pytz
|
||||||
make_depends:
|
make_depends:
|
||||||
- python-build
|
|
||||||
- python-installer
|
|
||||||
- python-setuptools
|
- python-setuptools
|
||||||
- python-wheel
|
- python-wheel
|
||||||
downloads:
|
downloads:
|
||||||
|
|||||||
@@ -5,13 +5,14 @@
|
|||||||
# 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() {
|
||||||
python3 -m build --wheel --no-isolation .
|
python setup.py import_cldr
|
||||||
|
python setup.py build
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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() {
|
||||||
python3 -m installer --destdir="$BPM_OUTPUT" dist/*.whl
|
python setup.py install --root="$BPM_OUTPUT" --optimize=1 --skip-build
|
||||||
|
|
||||||
# Install package license
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/python-babel/LICENSE
|
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/python-babel/LICENSE
|
||||||
|
|||||||
Reference in New Issue
Block a user