Fix dependencies, remove check function and add license
This commit is contained in:
@@ -15,17 +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
|
||||
}
|
||||
|
||||
# The check function is executed in the source directory
|
||||
# This function is used to run tests to verify the package has been compiled correctly
|
||||
check() {
|
||||
make check
|
||||
python3 -m flit_core.wheel
|
||||
}
|
||||
|
||||
# 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 flit_core
|
||||
python3 bootstrap_install.py --install-root "$BPM_OUTPUT" dist/flit_core-"$BPM_PKG_VERSION"-py3-none-any.whl
|
||||
|
||||
# Install package license
|
||||
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/python-flit-core/LICENSE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user