actions.py 895 B

123456789101112131415161718192021222324252627
  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 get
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import pythonmodules
  10. def build():
  11. # suppress compiler warnings
  12. shelltools.export("CFLAGS", "-Wno-implicit-function-declaration -Wno-unused-but-set-variable -Wno-nonnull %s" % get.CFLAGS())
  13. # fix unused dependency analysis
  14. shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread")
  15. pythonmodules.compile()
  16. #pythonmodules.run("setup.py build_sphinx")
  17. #def check():
  18. # pythonmodules.compile("test")
  19. def install():
  20. # suppress compiler warnings
  21. pisitools.cflags.add("-Wno-implicit-function-declaration")
  22. pythonmodules.install()