00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 """Clean up script for build artifacts.
00016
00017 Only really intended to be used by internal build scripts.
00018 """
00019
00020 import os
00021 import sys
00022
00023 try:
00024 os.remove("pymongo/_cmessage.so")
00025 os.remove("bson/_cbson.so")
00026 except:
00027 pass
00028
00029 try:
00030 os.remove("pymongo/_cmessage.pyd")
00031 os.remove("bson/_cbson.pyd")
00032 except:
00033 pass
00034
00035 try:
00036 from pymongo import _cmessage
00037 sys.exit("could still import _cmessage")
00038 except ImportError:
00039 pass
00040
00041 try:
00042 from bson import _cbson
00043 sys.exit("could still import _cbson")
00044 except ImportError:
00045 pass