pip:splited into python3 folder for py3
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user