build C extension for python 3.x
This commit is contained in:
parent
4a751e9cbc
commit
e5bb71a834
@ -77,8 +77,7 @@ CFLAGS="%{optflags}" %{__python} setup.py --with-cextensions build
|
|||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
# Currently the cextension doesn't work with python3
|
CFLAGS="%{optflags}" %{__python3} setup.py --with-cextensions build
|
||||||
CFLAGS="%{optflags}" %{__python3} setup.py build
|
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -91,8 +90,7 @@ mkdir -p %{buildroot}%{python_sitelib}
|
|||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
mkdir -p %{buildroot}%{python3_sitelib}
|
mkdir -p %{buildroot}%{python3_sitelib}
|
||||||
# Currently the cextension doesn't work with python3
|
%{__python3} setup.py --with-cextensions install --skip-build --root %{buildroot}
|
||||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -121,13 +119,14 @@ popd
|
|||||||
%files -n python3-sqlalchemy
|
%files -n python3-sqlalchemy
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE PKG-INFO doc examples
|
%doc LICENSE PKG-INFO doc examples
|
||||||
%{python3_sitelib}/*
|
%{python3_sitearch}/*
|
||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jan 07 2014 Nils Philippsen <nils@redhat.com> - 0.9.1-1
|
* Tue Jan 07 2014 Nils Philippsen <nils@redhat.com> - 0.9.1-1
|
||||||
- version 0.9.1, upstream feature and bugfix release
|
- version 0.9.1, upstream feature and bugfix release
|
||||||
- no need to use 2to3 for python 3.x anymore
|
- no need to use 2to3 for python 3.x anymore
|
||||||
|
- build C extension for python 3.x
|
||||||
|
|
||||||
* Mon Dec 09 2013 Nils Philippsen <nils@redhat.com> - 0.8.4-1
|
* Mon Dec 09 2013 Nils Philippsen <nils@redhat.com> - 0.8.4-1
|
||||||
- version 0.8.4, upstream bugfix release
|
- version 0.8.4, upstream bugfix release
|
||||||
|
Loading…
Reference in New Issue
Block a user