python add new package and fix

This commit is contained in:
alihanozturk
2016-06-07 00:14:16 +03:00
parent 2660cc6bcb
commit 74e4a469fc
19 changed files with 270 additions and 148 deletions
@@ -6,14 +6,9 @@
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
WorkDir="requests-%s" % get.srcVERSION()
def build():
pythonmodules.compile()
def install():
shelltools.makedirs("python3")
shelltools.copytree("../requests-%s" % get.srcVERSION(), "%s/python3" % get.workDIR())
pythonmodules.install()
shelltools.cd("%s/python3" % get.workDIR())
pythonmodules.install(pyVer = "3")
@@ -12,35 +12,29 @@
<Description>Pythons standard urllib2 module provides most of the HTTP capabilities you need</Description>
<License>MIT</License>
<Archive sha1sum="17f01c47a0d7c676f6291608ef2f43db3fa74095" type="targz">https://pypi.python.org/packages/source/r/requests/requests-2.9.1.tar.gz</Archive>
<BuildDependencies>
<Dependency>python</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency>python-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>python-requests</Name>
<RuntimeDependencies>
<Dependency>python-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="data">/usr/lib/python2*</Path>
<Path fileType="data">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>python3-requests</Name>
<Files>
<Path fileType="data">/usr/lib/python3*</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2016-05-08</Date>
<Date>2016-06-06</Date>
<Version>2.9.1</Version>
<Comment>First release</Comment>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Update>
</History>
</PISI>
</PISI>