Fix .spec for pip and flit_core accepted/tizen_9.0_base accepted/tizen_base accepted/tizen_base_asan accepted/tizen_base_dev accepted/tizen_base_toolchain accepted/tizen_base_x accepted/tizen_base_x_asan tizen_9.0_base tizen_base accepted/tizen/9.0/base/20241030.075550 accepted/tizen/base/20240328.042948 accepted/tizen/base/asan/20240406.082204 accepted/tizen/base/dev/20241206.041326 accepted/tizen/base/toolchain/20240424.234631 accepted/tizen/base/x/20240328.085942 accepted/tizen/base/x/asan/20240412.002808 tizen_9.0_m2_release
authorTizenOpenSource <tizenopensrc@samsung.com>
Mon, 11 Mar 2024 00:30:05 +0000 (09:30 +0900)
committerTizenOpenSource <tizenopensrc@samsung.com>
Mon, 11 Mar 2024 00:30:05 +0000 (09:30 +0900)
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
packaging/python3-wheel.spec

index d279a5cd16e774926f4f2667b58ea36a9bac42ae..ff530711a85356c1a38befc2cb8ddaadd8edd389 100644 (file)
@@ -8,7 +8,8 @@ Source0:        wheel-%{version}.tar.gz
 Source1001:     %{name}.manifest
 
 BuildRequires:  pkgconfig(python3)
-BuildRequires:  python3-setuptools
+BuildRequires:  python3-pip
+BuildRequires:  python3-flit_core
 
 BuildArch:      noarch
 
@@ -28,15 +29,20 @@ final locations) at any later time.
 
 %build
 cp %{SOURCE1001} .
-%{_bindir}/python3 setup.py build
+# bootstrap with built-in pip
+%{_bindir}/python3 -m venv build/env
+build/env/bin/python -m ensurepip
+export PYTHONPATH=build/env/lib/python%{python3_version}/site-packages
+%{_bindir}/python3 -mpip wheel --verbose --progress-bar off --disable-pip-version-check --use-pep517 --no-build-isolation --no-deps --no-cache-dir --wheel-dir ./build .
 
 %install
-%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
+export PYTHONPATH=build/env/lib/python%{python3_version}/site-packages
+%{_bindir}/python3 -mpip install --verbose --progress-bar off --disable-pip-version-check --root %{buildroot} --no-compile --ignore-installed --no-deps --no-index --no-cache-dir --find-links ./build wheel==%{version}
 
 %files 
 %license LICENSE.txt
+%{_bindir}/wheel
 %{python3_sitelib}/wheel/*.py
-%{python3_sitelib}/wheel/__pycache__/*
 %{python3_sitelib}/wheel/cli/*
 %{python3_sitelib}/wheel/vendored/*
-%{python3_sitelib}/wheel-%{version}-py%{python3_version}.egg-info
+%{python3_sitelib}/wheel-%{version}.dist-info