File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 9
9
# Remove built binaries
10
10
rm -rf build/ detectron2/*.so
11
11
# Tests that code is importable without installation
12
- PYTHONPATH= . ./.circleci /import-tests.sh
12
+ . ./.github /import-tests.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -e
2
+ # Copyright (c) Facebook, Inc. and its affiliates.
3
+
4
+ # Test that import works without building detectron2.
5
+
6
+ # Check that _C is not importable
7
+ python -c " from detectron2 import _C" > /dev/null 2>&1 && {
8
+ echo " This test should be run without building detectron2."
9
+ exit 1
10
+ }
11
+
12
+ # Check that other modules are still importable, even when _C is not importable
13
+ python -c " from detectron2 import modeling"
14
+ python -c " from detectron2 import modeling, data"
15
+ python -c " from detectron2 import evaluation, export, checkpoint"
16
+ python -c " from detectron2 import utils, engine"
You can’t perform that action at this time.
0 commit comments