Skip to content
Georgy Moiseev edited this page Nov 2, 2022 · 4 revisions

Unfortunately, RPM infrastructure is not well-developed for Python packages due to pip presence. RPM packages that are required for tarantool Python module as dependencies are not always present in target system. So we built them manually.

python3-dataclasses

Could be found in EPEL8, not presents in EPEL7.

Since all Fedora releases comes with in-built Python 3.10, we would not provide this Python 3.6 feature backport RPM for them.

docker run -it -v `pwd`:/output centos:7

Download SRPM.

yum install -y wget
wget https://download-ib01.fedoraproject.org/pub/epel/8/Everything/SRPMS/Packages/p/python-dataclasses-0.8-3.el8.src.rpm

yum install -y python3 python3-libs python3-pip python3-devel git
yum install -y gcc rpm-build rpm-devel rpmlint make bash coreutils diffutils patch rpmdevtools python-rpm-macros
yum install -y epel-release
yum install -y epel-rpm-macros
rpmbuild --rebuild python-dataclasses-0.8-3.el8.src.rpm
# Failed, remove python3dist(setuptools) build dependency:
# setuptools are already installed, but it requires some
# setuptools EPEL8 RPM for unknown reasons.
vi ~/rpmbuild/SPECS/python-dataclasses.spec
rpmbuild --ba ~/rpmbuild/SPECS/python-dataclasses.spec
cp ~/rpmbuild/SRPMS/python-dataclasses-0.8-3.el7.src.rpm /output
cp ~/rpmbuild/RPMS/noarch/python3-dataclasses-0.8-3.el7.noarch.rpm /output
Clone this wiki locally