| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
from sipbuild.abstract_project import AbstractProject |
| 8 |
from sipbuild.exceptions import handle_exception |
| 9 |
|
| 10 |
def main(): |
| 11 |
""" Generate the project bindings from the command line. """ |
| 12 |
|
| 13 |
try: |
| 14 |
project = AbstractProject.bootstrap( |
| 15 |
'build', "Generate the project bindings.") |
| 16 |
project.builder._generate_bindings() |
| 17 |
project.progress("The project bindings are ready for build.") |
| 18 |
except Exception as e: |
| 19 |
handle_exception(e) |
| 20 |
|
| 21 |
return 0 |
| 22 |
|
| 23 |
if __name__ == "__main__": |
| 24 |
main() |