source: sasmodels/gen_so.py @ e9dc7df

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since e9dc7df was bfdfb23, checked in by piotr, 9 years ago

PK's code review for gen_so.py + local implementation of tgamma for compilers who don't support this method

  • Property mode set to 100644
File size: 603 bytes
Line 
1# Script to compile all C/C++ models
2# Part of the build process, referenced from setup.py
3import sys, os
4
5def main():
6    sasmodels = os.path.dirname(os.path.realpath(__file__))
7    sys.path.insert(0, sasmodels)
8    from sasmodels import generate, core
9
10    # Convert ../sasmodels/models/name.py to name
11    for model_name in core.list_models():
12        # Choose only relevant python files
13            # model_info = core.load_model_info(model_name)
14            # Run the conversion but don't delete the .so
15            model = core.precompile_dll(model_name)
16
17if __name__ == "__main__":
18    main()
19
20
21
Note: See TracBrowser for help on using the repository browser.