No more py3dir
This commit is contained in:
parent
96823de2c5
commit
d29e6e08f8
@ -60,23 +60,12 @@ supported (JavaScript evaluation).
|
||||
%prep
|
||||
%setup -q -n %{pypi_name}-%{version}
|
||||
|
||||
rm -rf %{py3dir}
|
||||
cp -a . %{py3dir}
|
||||
#fix utf8 encoding issue occurring only under py3
|
||||
pushd %{py3dir}
|
||||
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}|'
|
||||
popd
|
||||
|
||||
%build
|
||||
%if %{with python2}
|
||||
%py2_build
|
||||
%endif # with python2
|
||||
|
||||
pushd %{py3dir}
|
||||
export LANG=en_US.utf8
|
||||
env
|
||||
%py3_build
|
||||
popd
|
||||
|
||||
|
||||
%install
|
||||
@ -85,20 +74,16 @@ popd
|
||||
rm %{buildroot}/%{_bindir}/lesscpy
|
||||
%endif # with python2
|
||||
|
||||
pushd %{py3dir}
|
||||
%py3_install
|
||||
# link for backwards compatibility. consider removal in Fedora 30+
|
||||
ln -s ./lesscpy %{buildroot}/%{_bindir}/py3-lesscpy
|
||||
popd
|
||||
|
||||
|
||||
#%check
|
||||
#%%if %{with python2}
|
||||
#nosetests -v
|
||||
#%%endif # with python2
|
||||
#pushd %{py3dir}
|
||||
#nosetests-3.3 -v
|
||||
#popd
|
||||
|
||||
%if %{with python2}
|
||||
%files -n python2-lesscpy
|
||||
|
Loading…
Reference in New Issue
Block a user