Unverified Commit 0346b0aa authored by Jinjing Zhou's avatar Jinjing Zhou Committed by GitHub
Browse files

[Test] Add test for Cython and force rebuild when run setup.py (#2635)

parent 3cf42fd1
...@@ -105,7 +105,7 @@ def config_cython(): ...@@ -105,7 +105,7 @@ def config_cython():
library_dirs=library_dirs, library_dirs=library_dirs,
libraries=libraries, libraries=libraries,
language="c++")) language="c++"))
return cythonize(ret) return cythonize(ret, force=True)
except ImportError: except ImportError:
print("WARNING: Cython is not installed, will compile without cython module") print("WARNING: Cython is not installed, will compile without cython module")
return [] return []
......
import dgl
import unittest
import os
@unittest.skipIf(os.name == 'nt', reason='Cython only works on linux')
def test_cython():
import dgl._ffi._cy3.core
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment