File indexing completed on 2024-05-12 04:22:35

0001 #!/usr/bin/env python3
0002 
0003 # SPDX-FileCopyrightText: 2019 Riverbank Computing Limited
0004 # SPDX-FileCopyrightText: 2021 L. E. Segovia <amy@amyspark.me>
0005 # SPDX-License-Identifier: GPL-2.0-or-later
0006 
0007 from sipbuild.abstract_project import AbstractProject
0008 from sipbuild.exceptions import handle_exception
0009 
0010 def main():
0011     """ Generate the project bindings from the command line. """
0012 
0013     try:
0014         project = AbstractProject.bootstrap(
0015             'build', "Generate the project bindings.")
0016         project.builder._generate_bindings()
0017         project.progress("The project bindings are ready for build.")
0018     except Exception as e:
0019         handle_exception(e)
0020 
0021     return 0
0022 
0023 if __name__ == "__main__":
0024     main()