mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-22 11:45:56 -04:00
Do not install patched Cython to buildroot
It is not required, and also try hard to not reference buildroot in cython arguments.
This commit is contained in:
parent
35785b9c1d
commit
9737ac2051
2 changed files with 12 additions and 15 deletions
|
@ -872,17 +872,6 @@ ln -sf %{_libdir} $SAGE_LOCAL/lib
|
|||
ln -sf %{_includedir} $SAGE_LOCAL/include
|
||||
ln -sf %{_datadir} $SAGE_LOCAL/share
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
%if %{with cython_hack}
|
||||
mkdir -p %{buildroot}%{python_sitearch}
|
||||
cp -far %{python_sitearch}/Cython %{buildroot}%{python_sitearch}
|
||||
PATCH=$PWD/build/pkgs/cython/patches/pxi_sys_path.patch
|
||||
pushd %{buildroot}%{python_sitearch}
|
||||
patch -p1 < $PATCH
|
||||
patch -p1 < %{PATCH27}
|
||||
popd
|
||||
%endif
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
pushd build/pkgs/cysignals/src
|
||||
pushd docs
|
||||
|
@ -1195,10 +1184,6 @@ perl -pi -e 's|%{buildroot}||g;' \
|
|||
# with docs
|
||||
%endif
|
||||
|
||||
%if %{with cython_hack}
|
||||
rm -fr %{buildroot}%{python_sitearch}/Cython
|
||||
%endif
|
||||
|
||||
# Script was used to build documentation
|
||||
perl -pi -e 's|%{buildroot}||g;s|^##||g;' %{buildroot}%{_bindir}/sage
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue