'facing issues in creating RPM for pandas
i am trying to create rpm for pandas, below is my spec file, when i try to build the rpm with this command i get this error sudo rpmbuild --define "_topdir pwd" -bb rpmbuild/SPECS/pand.spec
Name: python3-pandas
Version: 1.4.2
Release: 0
Summary: Powerful data structures for data analysis, time series, and statistics
License: BSD-3-Clause
URL: https://pandas.pydata.org
Source: https://files.pythonhosted.org/packages/source/p/pandas/pandas-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
<div align="center">
<img src="https://pandas.pydata.org/static/img/pandas.svg"><br>
</div>
See the full instructions for [installing from source](https://pandas.pydata.org/pandas-docs/stable/install.html#installing-from-source).
## License
[BSD 3](LICENSE)
## Documentation
The official documentation is hosted on PyData.org: https://pandas.pydata.org/pandas-docs/stable
%prep
%setup -q -n pandas-%{version}
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{python3_sitelib}/*
%changelog
error
$ sudo rpmbuild --define "_topdir `pwd`" -bb SPECS/pand.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.FUk3M9
+ umask 022
+ cd /home/****/rpmbuild/BUILD
+ cd /home/****/rpmbuild/BUILD
+ rm -rf pandas-1.4.2
+ /usr/bin/gzip -dc /home/***/rpmbuild/SOURCES/pandas-1.4.2.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd pandas-1.4.2
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.dNRCRw
+ umask 022
+ cd /home/*****/rpmbuild/BUILD
+ cd pandas-1.4.2
+ python3 setup.py build
Traceback (most recent call last):
File "setup.py", line 18, in <module>
import numpy
ModuleNotFoundError: No module named 'numpy'
error: Bad exit status from /var/tmp/rpm-tmp.dNRCRw (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.dNRCRw (%build)
any help in building rpm would really be appreciated
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
