Hello community, here is the log from the commit of package python-numpy for openSUSE:Factory checked in at 2012-12-14 10:43:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-numpy", Maintainer is "jmate...@suse.com" Changes: -------- python-numpy.changes: same change --- /work/SRC/openSUSE:Factory/python-numpy/python3-numpy.changes 2012-11-28 14:33:49.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new/python3-numpy.changes 2012-12-14 10:43:45.000000000 +0100 @@ -1,0 +2,5 @@ +Wed Dec 12 02:25:57 UTC 2012 - highwaystar...@gmail.com + +- regenerate mtrand.c with cython, needed for python3.3 compatibility + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ python-numpy.spec: same change ++++++ python3-numpy.spec ++++++ --- /var/tmp/diff_new_pack.VSc2Dq/_old 2012-12-14 10:43:47.000000000 +0100 +++ /var/tmp/diff_new_pack.VSc2Dq/_new 2012-12-14 10:43:47.000000000 +0100 @@ -34,6 +34,8 @@ BuildRequires: python3 BuildRequires: python3-2to3 BuildRequires: python3-devel +# Cython needed for mtrand.c regenerating (python3.3) +BuildRequires: python3-Cython # FIXME: atlas is horribly broken # %if 0%{?suse_version} <= 1210 # BuildRequires: libatlas3-devel @@ -88,6 +90,21 @@ %patch3 -p1 sed -i "1d" %{modname}/{compat/setup{,scons},distutils/{conv_template,cpuinfo,exec_command,from_template,setup,setupscons,system_info},f2py/{auxfuncs,capi_maps,cb_rules,cfuncs,common_rules,crackfortran,diagnose,docs/usersguide/setup_example,f2py2e,f90mod_rules,func2subr,__init__,rules,setup,setupscons,use_rules},ma/setup{,scons},matrixlib/setup{,scons},setup,setupscons,testing/print_coercion_tables,testing/setup{,scons}}.py # Fix non-executable scripts +# Fix from Fedora: +# Regenerate Cython c sources +# This is needed with numpy-1.6.2.tar.gz with python 3.3 to avoid an exception +# with an import call in the generated .c file in the tarball that uses the +# old default of -1: +# File "mtrand.pyx", line 126, in init mtrand (numpy/random/mtrand/mtrand.c:20679) +# ValueError: level must be >= 0 +# due to the changes in import in 3.3 +# Regenerating with a newer Cython fixes it: +%if 0%{?suse_version} && 0%{?suse_version} >= 1230 +pushd numpy/random/mtrand/ +rm -v mtrand.c +cython-%{py3_ver} mtrand.pyx +popd +%endif %build CFLAGS="%{optflags} -fno-strict-aliasing" python3 setup.py build -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org