Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

See [/InstallingOnWindows].

Currently a couple of tests are known to fail:

> ======================================================================
> ERROR: test_globals (Cython.Build.Tests.TestInline.TestInline)
> ERROR: test_locals (Cython.Build.Tests.TestInline.TestInline)
> ERROR: test_numpy (Cython.Build.Tests.TestInline.TestInline)
> ERROR: test_simple (Cython.Build.Tests.TestInline.TestInline)
> ERROR: test_types (Cython.Build.Tests.TestInline.TestInline)
> ...
>    raise DistutilsPlatformError("Unable to find vcvarsall.bat")
> DistutilsPlatformError: Unable to find vcvarsall.bat

I'm not sure what's going on here--it's using the standard distutils.

> ======================================================================
> ERROR: test_all (Cython.Debugger.Tests.TestLibCython.TestAll)
> ----------------------------------------------------------------------

> ,,,
>    raise DistutilsPlatformError("Unable to find vcvarsall.bat")
> DistutilsPlatformError: Unable to find vcvarsall.bat

Same, though this should no longer get invoked if you don't have the right gdb.

> ======================================================================
> ERROR: End-to-end basic_cythonize.srctree
> ERROR: End-to-end basic_distutils.srctree
> ERROR: End-to-end cpp_cythonize.srctree
> ERROR: End-to-end cythonize_options.srctree
> ERROR: End-to-end inline_distutils.srctree

I think these are due to the Cython.Debugger.Tests failing, leaving the cwd in a bad state. Fixed.

> ERROR: compiling (c) cnamespec
> ERROR: compiling (cpp) cnamespec

Windows can't handle extern declarations that don't actually exist. Not sure what the best fix is here, as we want to test that this code compiles to valid C code.

> ======================================================================
> ERROR: compiling (cpp) and running complex_numbers_T305
> ERROR: compiling (cpp) and running complex_numbers_c99_T398
> ERROR: compiling (cpp) and running complex_numbers_cxx_T398

The code in question is

#if defined(_WIN32) && defined(__cplusplus) && CYTHON_CCOMPLEX
    #define __Pyx_SET_CREAL(z,x) ((z).real(x))
    #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
#else
    #define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x)
    #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y)
#endif

Is there a better way to set the parts individually? Can it be done?

> ======================================================================
> FAIL: Doctest: numpy_test
> File "c:\temp\Cython-0.14.1rc1\BUILD\run\c\numpy_test.pyd", line 235,
> in numpy_test
> Failed example:
>    test_dtype('g', inc1_longdouble)
>    ValueError: Item size of buffer (8 bytes) does not match size of 'long double' (12 bytes)
>    test_dtype('G', inc1_clongdouble)
>    ValueError: Item size of buffer (16 bytes) does not match size of 'long double complex' (24 bytes)
>    test_dtype('G', inc1_clongdouble_struct)
>    ValueError: Buffer dtype mismatch, expected 'double' but got 'complex long double' in 'clongdouble_t.real'
>    test_dtype(np.longdouble, inc1_longdouble_t)
>    ValueError: Buffer dtype mismatch, expected 'longdouble_t' but got 'long double'

Hopefully someone more familiar with NumPy can comment on this?
Something went wrong with that request. Please try again.