Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
0346b0aa
Unverified
Commit
0346b0aa
authored
Feb 05, 2021
by
Jinjing Zhou
Committed by
GitHub
Feb 05, 2021
Browse files
[Test] Add test for Cython and force rebuild when run setup.py (#2635)
parent
3cf42fd1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
python/setup.py
python/setup.py
+1
-1
tests/compute/test_cython.py
tests/compute/test_cython.py
+8
-0
No files found.
python/setup.py
View file @
0346b0aa
...
...
@@ -105,7 +105,7 @@ def config_cython():
library_dirs
=
library_dirs
,
libraries
=
libraries
,
language
=
"c++"
))
return
cythonize
(
ret
)
return
cythonize
(
ret
,
force
=
True
)
except
ImportError
:
print
(
"WARNING: Cython is not installed, will compile without cython module"
)
return
[]
...
...
tests/compute/test_cython.py
0 → 100644
View file @
0346b0aa
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment