Blob Blame History Raw
%global pypi_name multiprocess

%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-%{pypi_name}
Release:        2%{?dist}
Summary:        Better multiprocessing and multithreading in python

License:        BSD
URL:  {pypi_name}
Source0:        %{pypi_source %{pypi_name} %{version} zip}
BuildArch:      noarch

%description %_description

%package -n python3-%{pypi_name}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python-unversioned-command
BuildRequires:  python3-dill
BuildRequires:  python3-test

%description -n python3-%{pypi_name} %_description

%package doc
Summary:        Documentation for %{name}

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

%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

# Fix wrong end of file encoding
sed -i 's/\r$//' CHANGES.txt
sed -i 's/\r$//' THANKS.txt
find py%{python3_version}/doc/ -name "*" -exec sed -i 's/\r$//' '{}' \;
find py%{python3_version}/examples/ -name "*" -exec sed -i 's/\r$//' '{}' \;

# remove shebang
sed -i '/^#![  ]*\/usr\/bin\/env.*$/ d' py%{python3_version}/%{pypi_name}/tests/



export PYTHONPATH="$RPM_BUILD_ROOT/%{python3_sitearch}/:$RPM_BUILD_ROOT/%{python3_sitelib}/:."
pushd py%{python3_version}
for test in multiprocess/tests/; do echo $test ; %{__python3} $test > /dev/null; done

# These do not run properly in the build root: it cannot find the installed version even after PYTHONPATH is set
#for test in multiprocess/tests/*.py; do if [[ $test != *"__"* && $test != *"mp_"*  ]]; then echo $test ; %%{__python3} $test > /dev/null; fi; done

%files -n python3-%{pypi_name}
%license LICENSE COPYING.txt
%doc THANKS.txt CHANGES.txt

%files doc
%license LICENSE COPYING.txt
%doc THANKS.txt CHANGES.txt
%doc py%{python3_version}/examples/
%doc py%{python3_version}/doc/

* Fri Jan 21 2022 Fedora Release Engineering <> -
- Rebuilt for

* Sat Jul 10 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> -
- Initial build