pip:splited into python3 folder for py3

This commit is contained in:
ayhanyalcinsoy
2016-06-06 19:44:20 +03:00
parent 2ab54d3c5f
commit 1a11d6dcaf
2 changed files with 8 additions and 31 deletions
+1 -16
View File
@@ -12,22 +12,7 @@ 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")
shelltools.system("sed -i 's|#!/usr/bin/env python$|#!/usr/bin/env python3|' %s/usr/lib/python3.4/site-packages/pip/__init__.py" % get.installDIR())
shelltools.system("python3 -m compileall %s/usr/lib/python3.4/site-packages/pip/__init__.py" % get.installDIR())
+7 -15
View File
@@ -16,8 +16,6 @@
<BuildDependencies>
<Dependency>python-setuptools</Dependency>
<Dependency>python3-setuptools</Dependency>
<Dependency>python3-devel</Dependency>
</BuildDependencies>
</Source>
@@ -32,21 +30,15 @@
<Dependency>python-setuptools</Dependency>
</RuntimeDependencies>
</Package>
<Package>
<Name>pip3</Name>
<Files>
<Path fileType="executable">/usr/bin/pip</Path>
<Path fileType="executable">/usr/bin/pip3*</Path>
<Path fileType="data">/usr/lib/python3*</Path>
<!-- <Path fileType="doc">/usr/share/doc</Path> -->
</Files>
<RuntimeDependencies>
<Dependency>python3-setuptools</Dependency>
</RuntimeDependencies>
</Package>
<History>
<Update release="3">
<Date>2016-06-06</Date>
<Version>8.1.2</Version>
<Comment>version bump</Comment>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2016-05-30</Date>
<Version>8.1.2</Version>