python3-setuptools for python3

This commit is contained in:
2015-11-06 15:04:00 +02:00
parent b1ad3c1597
commit 45804838a2
7 changed files with 85509 additions and 84988 deletions
@@ -0,0 +1,25 @@
# -*- 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 pisitools
from pisi.actionsapi import get
from pisi.actionsapi import shelltools
WorkDir="distribute-%s" % get.srcVERSION()
def setup():
shelltools.makedirs("python3")
shelltools.copytree("../distribute-%s" % get.srcVERSION(), "%s/python3" % get.workDIR())
def install():
#pythonmodules.install()
#pisitools.remove("/usr/lib/%s/site-packages/setuptools/*.exe" % get.curPYTHON())
shelltools.cd("%s/python3" % get.workDIR())
pythonmodules.install(pyVer = "3")
pisitools.remove("/usr/lib/python3.4/site-packages/setuptools/*.exe")
pisitools.rename("/usr/bin/easy_install", "py3easy-install")
#avoid python-setuptools conflict
pisitools.removeDir("/usr/share")