You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
802 B

4 years ago
  1. #!/home/alpcentaur/ProjektA/PrototypeWebApp/venv/bin/python3.5
  2. # See http://cens.ioc.ee/projects/f2py2e/
  3. from __future__ import division, print_function
  4. import os
  5. import sys
  6. for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]:
  7. try:
  8. i = sys.argv.index("--" + mode)
  9. del sys.argv[i]
  10. break
  11. except ValueError:
  12. pass
  13. os.environ["NO_SCIPY_IMPORT"] = "f2py"
  14. if mode == "g3-numpy":
  15. sys.stderr.write("G3 f2py support is not implemented, yet.\\n")
  16. sys.exit(1)
  17. elif mode == "2e-numeric":
  18. from f2py2e import main
  19. elif mode == "2e-numarray":
  20. sys.argv.append("-DNUMARRAY")
  21. from f2py2e import main
  22. elif mode == "2e-numpy":
  23. from numpy.f2py import main
  24. else:
  25. sys.stderr.write("Unknown mode: " + repr(mode) + "\\n")
  26. sys.exit(1)
  27. main()