Skip to content

Commit

Permalink
Putting compile.py functionality into a function; ignore failures fro…
Browse files Browse the repository at this point in the history
…m compile() in setup.py.
  • Loading branch information
bendmorris committed Mar 15, 2012
1 parent 3ffa9fc commit faae030
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
11 changes: 8 additions & 3 deletions compile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
from retriever import MODULE_LIST
print "Compiling retriever scripts..."
MODULE_LIST(force_compile=True)
print "done."

def compile():
print "Compiling retriever scripts..."
MODULE_LIST(force_compile=True)
print "done."

if __name__ == "__main__":
compile()
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,9 @@ def clean_version(v):
},
)

import compile

try:
from compile import compile
compile()
except:
pass

0 comments on commit faae030

Please sign in to comment.