diff --git a/pkg.info b/pkg.info index b6a2a49..8641c34 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: python-wheel description: Python wheel packaging standard implementation version: 0.42.0 -revision: 2 +revision: 3 url: https://pypi.org/project/wheel/ license: MIT architecture: any diff --git a/source.sh b/source.sh index 9140758..c5e9736 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 setup.py build } # 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 --find-links=dist wheel + python3 setup.py install --root="$BPM_OUTPUT" --prefix=/usr + + # Install package license + install -Dm644 LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/python-wheel/LICENSE.txt }