* Implement support for Tcl/Tk 9 in splash screen.
(:issue:`9313`)
* (macOS) Improve the .framework bundle fix-up code to remove
file entries that would be placed under restored symlinked
directories. This fixes file-already-exists errors at build
time (onedir) or run-time (onefile) when user or a hook tries
to collect (all) files from a package that ships a .framework
bundle with symlinks mangled into hard-copies (for example,
due to lack of symlink support in PyPI wheels).
(:issue:`9335`)
* Have hook for stdlib platform module exclude the _ios_support
module when sys.platform != 'ios'. This prevents unnecessary
collection of ctypes-imported libobjc shared library if the
latter happens to be available on the build system.
(:issue:`9333`)
* Update scipy hook for compatibility with scipy 1.17.0.
(:issue:`9353`)
* Avoid indirect usage of pkg_resources which is deprecated and
scheduled to be removed in 2025-11-30. (:issue:`9149`)
* Revise the search for Python shared library from
:issue:`9218` and the restrictions it imposes: enable the
fall-back codepath with guess-based name for all Python
builds that report Py_ENABLE_SHARED=0 instead of just for
Anaconda Python (compat.is_conda), but limit the search paths
in this fall-back codepath to only sys.base_prefix and the
lib directory under it. (:issue:`9276`)
* Work around performance issues introduced by superfluous
usage of :func:`gc.collect` in pefile==2024.8.26. PyInstaller
no longer blocks :installing pefile==2024.8.26.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyInstaller?expand=0&rev=36
115 lines
3.8 KiB
RPMSpec
115 lines
3.8 KiB
RPMSpec
#
|
|
# spec file for package python-PyInstaller
|
|
#
|
|
# Copyright (c) 2026 SUSE LLC and contributors
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
%bcond_without test
|
|
%define modname PyInstaller
|
|
Name: python-PyInstaller
|
|
Version: 6.19.0
|
|
Release: 0
|
|
Summary: Bundle a Python application and all its dependencies into a single package
|
|
License: GPL-2.0-only
|
|
URL: https://www.pyinstaller.org
|
|
Source: https://github.com/pyinstaller/pyinstaller/archive/refs/tags/v%{version}.tar.gz#/pyinstaller-%{version}.tar.gz
|
|
BuildRequires: %{python_module hatchling}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: pkgconfig(zlib)
|
|
Requires: python-altgraph
|
|
Requires: python-packaging >= 22.0
|
|
Requires: python-pyinstaller-hooks-contrib >= 2024.0
|
|
Requires: python-setuptools >= 42.0.0
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
Recommends: upx
|
|
%if %{with test}
|
|
BuildRequires: %{python_module altgraph}
|
|
BuildRequires: %{python_module packaging >= 22.0}
|
|
BuildRequires: %{python_module psutil}
|
|
BuildRequires: %{python_module pyinstaller-hooks-contrib >= 2024.0}
|
|
BuildRequires: %{python_module pytest-xdist}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: upx
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
PyInstaller bundles a Python application and all its dependencies into a single
|
|
package. The user can run the packaged app without installing a Python
|
|
interpreter or any modules.
|
|
|
|
%prep
|
|
%setup -q -n pyinstaller-%{version}
|
|
%autopatch -p1
|
|
|
|
chmod a-x PyInstaller/utils/hooks/__init__.py
|
|
|
|
# Force build of bootloader
|
|
rm -r PyInstaller/bootloader
|
|
|
|
%build
|
|
# -Wno-stringop-overflow only needed on ppc64
|
|
export CFLAGS="%{optflags} -Wno-stringop-truncation -Wno-unused-variable -Wno-unused-function -Wno-unused-but-set-variable -Wno-stringop-overflow"
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%{python_expand # Relocate to sitearch
|
|
if [ "%{$python_sitearch}" != "%{$python_sitelib}" ]; then
|
|
mkdir -p %{buildroot}%{$python_sitearch}
|
|
mv %{buildroot}%{$python_sitelib}/* %{buildroot}%{$python_sitearch}
|
|
fi
|
|
%fdupes %{buildroot}%{$python_sitearch}
|
|
}
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pyinstaller
|
|
%python_clone -a %{buildroot}%{_bindir}/pyi-archive_viewer
|
|
%python_clone -a %{buildroot}%{_bindir}/pyi-bindepend
|
|
%python_clone -a %{buildroot}%{_bindir}/pyi-grab_version
|
|
%python_clone -a %{buildroot}%{_bindir}/pyi-makespec
|
|
%python_clone -a %{buildroot}%{_bindir}/pyi-set_version
|
|
|
|
%if %{with test}
|
|
%check
|
|
export LANG=en_US.UTF-8
|
|
%pytest_arch -n auto tests/unit
|
|
%endif
|
|
|
|
%post
|
|
%{python_install_alternative pyinstaller pyi-archive_viewer pyi-bindepend pyi-grab_version pyi-makespec pyi-set_version}
|
|
|
|
%postun
|
|
%python_uninstall_alternative pyinstaller
|
|
|
|
%files %{python_files}
|
|
%doc README.rst doc/CHANGES.rst
|
|
%license COPYING.txt
|
|
%python_alternative %{_bindir}/pyinstaller
|
|
%python_alternative %{_bindir}/pyi-archive_viewer
|
|
%python_alternative %{_bindir}/pyi-bindepend
|
|
%python_alternative %{_bindir}/pyi-grab_version
|
|
%python_alternative %{_bindir}/pyi-makespec
|
|
%python_alternative %{_bindir}/pyi-set_version
|
|
%{python_sitearch}/PyInstaller
|
|
%{python_sitearch}/pyinstaller-%{version}*info
|
|
|
|
%changelog
|