docutils : rebuilt with python3 bindings

This commit is contained in:
blue-devil
2019-12-05 21:03:57 +00:00
parent 9c49cc3742
commit ece7095bd0
4 changed files with 71 additions and 27 deletions
+29 -2
View File
@@ -9,10 +9,37 @@ from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
WorkDir="docutils-%s" % get.srcVERSION()
def setup():
shelltools.cd("..")
shelltools.makedirs("build_python")
shelltools.copytree("./%s" % WorkDir, "build_python")
shelltools.cd(WorkDir)
shelltools.cd("..")
shelltools.makedirs("build_python3")
shelltools.copytree("./%s" % WorkDir, "build_python3")
shelltools.cd(WorkDir)
def build():
pythonmodules.compile()
shelltools.cd("../build_python/%s" % WorkDir)
pythonmodules.compile()
shelltools.system("pwd")
shelltools.cd("../../build_python3/%s" % WorkDir)
pythonmodules.compile(pyVer="3")
def install():
pythonmodules.install()
pisitools.dodoc("COPYING.txt", "PKG-INFO", "README.txt")
shelltools.cd("../build_python/%s" % WorkDir)
pythonmodules.install()
shelltools.cd("../../build_python3/%s" % WorkDir)
pythonmodules.install(pyVer="3")
#Remove .py extensions from scripts in /usr/bin
for f in shelltools.ls("%s/usr/bin" % get.installDIR()):