31 lines
1.2 KiB
Python
31 lines
1.2 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 autotools
|
|
from pisi.actionsapi import pisitools
|
|
from pisi.actionsapi import shelltools
|
|
from pisi.actionsapi import python3modules
|
|
from pisi.actionsapi import get
|
|
|
|
|
|
def build():
|
|
# suppress compiler warnings
|
|
pisitools.cflags.add("-Wno-stringop-truncation -Wno-deprecated-declarations -Wno-incompatible-pointer-types -Wno-discarded-qualifiers -Wno-sign-conversion -Wno-sign-compare -Wno-unused-function")
|
|
# fix unused direct dependency analysis
|
|
shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread -Wl,-O1 -Wl,-z,relro -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common")
|
|
python3modules.compile(pyVer="3")
|
|
# build documentation
|
|
shelltools.export("PYTHONPATH", "%s/cryptography-%s/build/lib.linux-x86_64-cpython-311" % (get.workDIR(), get.srcVERSION()))
|
|
shelltools.cd("docs")
|
|
autotools.make("html")
|
|
|
|
def install():
|
|
python3modules.install(pyVer="3")
|
|
pisitools.dohtml("docs/_build/html/*")
|
|
|
|
#for dirs in ["vectors"]:
|
|
# pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), dirs)
|