Skip to content

Commit

Permalink
trying to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
niklas2902 committed Sep 17, 2024
1 parent fb138c1 commit 0c468fb
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions cythonize_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
import meson_scripts.cythonize_files.cythonize_files as full_cythonize
import meson_scripts.cythonize_files.dev_cythonize_files as dev_cythonize
import meson_scripts.cythonize_files.cache_hit_cythonize as cache_cythonize
my_parser = argparse.ArgumentParser(fromfile_prefix_chars='@')
my_parser.add_argument('-mode', default="release",
help='Sepcify whether you want to turn all files to c++ files (release) or only a smaller portion (dev).'
'This impacts mainly the speed')
# Execute parse_args()
args = my_parser.parse_args()
if __name__ == "__main__":
my_parser = argparse.ArgumentParser(fromfile_prefix_chars='@')
my_parser.add_argument('-mode', default="release",
help='Sepcify whether you want to turn all files to c++ files (release) or only a smaller portion (dev).'
'This impacts mainly the speed')
# Execute parse_args()
args = my_parser.parse_args()

if args.mode == "release":
full_cythonize.main()
elif args.mode == "dev":
dev_cythonize.main()
elif args.mode == "cache":
cache_cythonize.main()
if args.mode == "release":
full_cythonize.main()
elif args.mode == "dev":
dev_cythonize.main()
elif args.mode == "cache":
cache_cythonize.main()

0 comments on commit 0c468fb

Please sign in to comment.