Skip to content

Commit e9088ba

Browse files
author
Mike Dirolf
committed
update tools/clean.py
1 parent 381cd8c commit e9088ba

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tools/clean.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,25 @@
2121
import sys
2222

2323
try:
24-
os.remove("pymongo/_cbson.so")
24+
os.remove("pymongo/_cmessage.so")
25+
os.remove("bson/_cbson.so")
2526
except:
2627
pass
2728

2829
try:
29-
os.remove("pymongo/_cbson.pyd")
30+
os.remove("pymongo/_cmessage.pyd")
31+
os.remove("bson/_cbson.pyd")
3032
except:
3133
pass
3234

3335
try:
34-
from pymongo import _cbson
36+
from pymongo import _cmessage
37+
sys.exit("could still import _cmessage")
38+
except ImportError:
39+
pass
40+
41+
try:
42+
from bson import _cbson
3543
sys.exit("could still import _cbson")
3644
except ImportError:
3745
pass

0 commit comments

Comments
 (0)