cython:moved to main

This commit is contained in:
blue-devil
2020-01-11 13:35:41 +00:00
parent 20f38d7dff
commit c698f35133
3 changed files with 102 additions and 0 deletions
@@ -0,0 +1,30 @@
#!/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 pisitools
from pisi.actionsapi import get
def build():
shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread -Wl,-O1 -Wl,-z,relro -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common")
shelltools.export("CFLAGS", "-fno-strict-aliasing -mtune=generic -march=x86-64 -O2 -pipe -fstack-protector -D_FORTIFY_SOURCE=2 -g -fPIC -fwrapv -DNDEBUG -g -fwrapv -O3 -Wno-strict-aliasing")
pythonmodules.compile()
# it takes hours to run test, run with caution!
#def check():
# pythonmodules.run("runtests.py -vv --no-pyregr")
def install():
pythonmodules.install()
for dirs in ["Doc", "Demos", "tests"]:
pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), dirs)
pisitools.dodoc("COPYING*", "README*", "USAGE*", "LICENSE*")
pisitools.rename("usr/bin/cygdb", "cygdb-py2")
pisitools.rename("usr/bin/cython", "cython-py2")
pisitools.rename("usr/bin/cythonize", "cythonize-py2")
@@ -0,0 +1,64 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>cython</Name>
<Homepage>https://cython.org/</Homepage>
<Packager>
<Name>Blue DeviL</Name>
<Email>bluedevil@sctzine.com</Email>
</Packager>
<License>Apache-2.0</License>
<PartOf>programming.language.python3</PartOf>
<IsA>app:console</IsA>
<IsA>library</IsA>
<Summary>C extensions for the Python</Summary>
<Description>Cython is a language that makes writing C extensions for the Python language as easy as Python itself.</Description>
<Archive sha1sum="db2286ea3b3a6060c4294f9c3df652c5b4f60fca" type="targz">https://github.com/cython/cython/archive/0.29.14.tar.gz</Archive>
<BuildDependencies>
<Dependency>python-setuptools</Dependency>
<Dependency>python-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>cython</Name>
<Summary>C extensions for the Python</Summary>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib/python2*</Path>
<Path fileType="doc">/usr/share/doc/cython</Path>
</Files>
</Package>
<History>
<Update release="4">
<Date>2019-12-31</Date>
<Version>0.29.14</Version>
<Comment>Rebuilt</Comment>
<Name>Blue DeviL</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="3">
<Date>2019-12-07</Date>
<Version>0.29.14</Version>
<Comment>Split packages</Comment>
<Name>Blue DeviL</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="2">
<Date>2019-11-11</Date>
<Version>0.29.14</Version>
<Comment>Ver. bump</Comment>
<Name>Blue DeviL</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="1">
<Date>2016-04-22</Date>
<Version>0.24</Version>
<Comment>First release</Comment>
<Name>İbrahim KARAGÜZEL</Name>
<Email>karaguzelibrahim@gmail.com</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>cython</Name>
<Summary xml:lang="tr">Python için C eklentileri</Summary>
<Description xml:lang="tr">Cython, Python için C eklentileri yazmayı kolaylaştıran bir dildir.</Description>
</Source>
</PISI>