actions.py 842 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import pythonmodules
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. WorkDir = "numpy-%s" % get.srcVERSION()
  11. NUMPY_FCONFIG = "config_fc --fcompiler=gnu95"
  12. f2py_docs = "%s/%s/f2py_docs" % (get.docDIR(), get.srcNAME())
  13. shelltools.export("LDFLAGS", "%s -shared" % get.LDFLAGS())
  14. shelltools.export("ATLAS", "None")
  15. shelltools.export("PTATLAS", "None")
  16. def build():
  17. pythonmodules.compile(NUMPY_FCONFIG)
  18. def install():
  19. pythonmodules.install(NUMPY_FCONFIG)
  20. pisitools.doman("doc/f2py/f2py.1")
  21. pisitools.insinto(f2py_docs, "doc/f2py/*.txt")
  22. pisitools.dodoc("LICENSE.txt", "THANKS.txt")