Files
main/programming/language/python/python-numpy/actions.py
T
2018-08-15 00:25:48 +03:00

35 lines
1.0 KiB
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
WorkDir = "numpy-%s" % get.srcVERSION()
NUMPY_FCONFIG = "config_fc --fcompiler=gnu95"
f2py_docs = "%s/%s/f2py_docs" % (get.docDIR(), get.srcNAME())
shelltools.export("LDFLAGS", "%s -shared" % get.LDFLAGS())
shelltools.export("ATLAS", "None")
shelltools.export("PTATLAS", "None")
def build():
pythonmodules.compile(NUMPY_FCONFIG)
def install():
pythonmodules.install(NUMPY_FCONFIG)
pisitools.rename("/usr/bin/f2py", "f2py2")
pisitools.rename("/usr/bin/from-template", "from-template2")
pisitools.rename("/usr/bin/conv-template", "conv-template2")
#pisitools.doman("doc/f2py/f2py.1")
#pisitools.insinto(f2py_docs, "doc/f2py/*.txt")
pisitools.dodoc("LICENSE.txt", "THANKS.txt")