Blob Blame History Raw
%global _description %{expand:
multiprocess is a fork of multiprocessing, and is developed as part of

multiprocessing is a package for the Python language which supports the
spawning of processes using the API of the standard library’s threading module.
multiprocessing has been distributed in the standard library since python 2.6.


- Objects can be transferred between processes using pipes or
  multi-producer/multi-consumer queues.
- Objects can be shared between processes using a server process or
  (for simple data) shared memory.
- Equivalents of all the synchronization primitives in threading are
- A Pool class makes it easy to submit tasks to a pool of worker

multiprocess is part of pathos, a python framework for heterogeneous
computing. multiprocess is in active development, so any user feedback,
bug reports, comments, or suggestions are highly appreciated. A list of
issues is located at, with a legacy list
maintained at}

Name:           python-multiprocess
Version:        0.70.14
Release:        %autorelease
Summary:        Better multiprocessing and multithreading in python

# The entire source is BSD-3-Clause, except py*/doc/html4css1.css, which are
# LicenseRef-Fedora-Public-Domain:
#   :Copyright: This stylesheet has been placed in the public domain.
License:        BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
Source0:        %{pypi_source multiprocess}
BuildArch:      noarch

BuildRequires:  dos2unix

%description %_description

%package -n python3-multiprocess
Summary:        %{summary}
# This subpackage does not contain the public-domain CSS file.
License:        BSD-3-Clause

BuildRequires:  python3-devel
# Required for tests; not automatically generated
BuildRequires:  python3-test
BuildRequires:  python3dist(pox)

%description -n python3-multiprocess %_description

%package doc
Summary:        Documentation for %{name}

%description doc
This package provides documentation for %{name}.

%autosetup -n multiprocess-%{version}

# Convert line endings
find py%{python3_version}/{doc,examples}/ -type f -exec dos2unix '{}' '+'

# Remove shebang
sed -r -i '1{/^#!/d}' py%{python3_version}/multiprocess/tests/

# Upstream pretends not to be a pure-Python package to “force python-, abi-,
# and platform-specific naming of bdist_wheel”; this isn’t needed here, and we
# don’t want the RPM package to have to be arched.
sed -r -i 's/^([[:blank:]]*)(distclass=BinaryDistribution,)/\1# \2/'



%pyproject_save_files multiprocess _multiprocess

# See tox.ini (but don’t try to use %%tox unless we comment out the explicit
# pip install command there):
PYTHONPATH='%{buildroot}%{python3_sitelib}' %{python3} \

%files -n python3-multiprocess -f %{pyproject_files}

%files doc
%doc py%{python3_version}/examples/
%doc py%{python3_version}/doc/