Files
main/programming/language/python/pip/actions.py
T
2015-11-06 15:00:39 +02:00

25 lines
773 B
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 pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
WorkDir="pip-%s" % get.srcVERSION()
def setup():
shelltools.makedirs("python3")
shelltools.copytree("../pip-%s" % get.srcVERSION(), "%s/python3" % get.workDIR())
pythonmodules.compile()
shelltools.cd("%s/python3" % get.workDIR())
pythonmodules.compile(pyVer = "3")
def install():
pythonmodules.install()
shelltools.cd("%s/python3" % get.workDIR())
pythonmodules.install(pyVer = "3")
pisitools.rename("/usr/bin/pip", "pip3")