Merge pull request #11406 from 4fury-c3440d8/next

pybind11, matplotlib.
This commit is contained in:
Rmys
2023-01-26 10:12:10 +03:00
committed by GitHub
9 changed files with 204 additions and 29 deletions
+14 -10
View File
@@ -1,20 +1,24 @@
#!/usr/bin/env python
#!/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
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
from pisi.actionsapi import pythonmodules, cmaketools
j = ''.join([
' -DPYBIND11_FINDPYTHON=ON',
' -DUSE_PYTHON_INCLUDE_DIR=OFF',
' -B_build -L '
])
def setup():
cmaketools.configure()
cmaketools.configure(j)
def build():
cmaketools.make()
cmaketools.make("-C _build")
pythonmodules.compile(pyVer = "3")
def install():
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("LICENSE")
cmaketools.install("-C _build")
pythonmodules.install(pyVer = "3")
+26 -9
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>pybind11</Name>
@@ -12,33 +12,50 @@
<IsA>app</IsA>
<Summary>Seamless operability between C++11 and Python</Summary>
<Description>Seamless operability between C++11 and Python</Description>
<Archive sha1sum="e340be2d61439deaf7bdd4bd273bb8c51b713f26" type="targz">https://github.com/pybind/pybind11/archive/v2.6.2.tar.gz</Archive>
<Archive sha1sum="6cd93bee0447ec432803c005fdcdeadc5d425c6d" type="targz">
<!-- https://files.pythonhosted.org/packages/source/p/pybind11/pybind11-2.10.3.tar.gz -->
https://github.com/pybind/pybind11/archive/refs/tags/v2.10.3.tar.gz
</Archive>
<BuildDependencies>
<Dependency>cmake</Dependency>
<Dependency>boost-devel</Dependency>
<Dependency>python3-devel</Dependency>
<!-- <Dependency>python3-pytest</Dependency> -->
<!-- <Dependency>python3-sphinx</Dependency> -->
<Dependency>python3-setuptools</Dependency>
<Dependency>python3-pytest</Dependency>
<Dependency>python3-importlib_metadata</Dependency>
</BuildDependencies>
<!--
<Patches>
<Patch>pybind11.patch</Patch>
<Patch level="1">pybind11.patch</Patch>
<!-- <Patch level="1">pybind11.patch</Patch> -->
</Patches>
-->
</Source>
<Package>
<Name>pybind11</Name>
<RuntimeDependencies>
<!-- <Dependency></Dependency> -->
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/share</Path>
<Path fileType="header">/usr/include/pybind11</Path>
<Path fileType="data">/usr/share/cmake/pybind11</Path>
<Path fileType="data">/usr/share/pkgconfig/pybind11.pc</Path>
<Path fileType="executable">/usr/bin/pybind11-config</Path>
<Path fileType="header">/usr/lib/python3.9/site-packages/pybind11/include</Path>
<Path fileType="data">/usr/lib/python3.9</Path>
<Path fileType="data">/usr/lib/python3.9/site-packages/pybind11/share/cmake</Path>
<Path fileType="data">/usr/lib/python3.9/site-packages/pybind11/share/pkgconfig</Path>
<Path fileType="data">/usr/share/doc/pybind11</Path>
</Files>
</Package>
<History>
<Update release="2">
<Date>2023-01-26</Date>
<Version>2.10.3</Version>
<Comment>Version bump.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
<Update release="1">
<Date>2021-03-10</Date>
<Version>2.6.2</Version>
@@ -0,0 +1,16 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import pythonmodules
def setup():
pass
def build():
pythonmodules.compile(pyVer = "3")
def install():
pythonmodules.install(pyVer = "3")
@@ -0,0 +1,53 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>python3-contourpy</Name>
<Homepage>https://github.com/contourpy/contourpy</Homepage>
<Packager>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Packager>
<License>BSD-3-Clause</License>
<IsA>library</IsA>
<PartOf>programming.language.python3</PartOf>
<Summary>Python library for calculating contours in 2D quadrilateral grids.</Summary>
<Description>
ContourPy is a Python library for calculating contours of 2D quadrilateral grids. It is written in C++11 and wrapped using pybind11.
</Description>
<Archive sha1sum="db7bd468db667482c05a48bb526efc40301ac04a" type="targz">
https://files.pythonhosted.org/packages/source/c/contourpy/contourpy-1.0.7.tar.gz
</Archive>
<BuildDependencies>
<Dependency>pybind11</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency>python3-setuptools</Dependency>
<Dependency>python3-importlib_metadata</Dependency>
</BuildDependencies>
<Patches>
<!-- <Patch level='1'></Patch> -->
</Patches>
</Source>
<Package>
<Name>python3-contourpy</Name>
<RuntimeDependencies>
<Dependency>python3</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib/python3.9</Path>
<Path fileType="data">/usr/share</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2023-01-26</Date>
<Version>1.0.7</Version>
<Comment>First build.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,18 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import pythonmodules, pisitools
def setup():
pass
def build():
pythonmodules.compile(pyVer = "3")
def install():
pythonmodules.install(pyVer = "3")
pisitools.dodoc("NEWS.rst")
@@ -0,0 +1,55 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>python3-fonttools</Name>
<Homepage>https://github.com/fonttools/fonttools</Homepage>
<Packager>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Packager>
<License>MIT</License>
<IsA>library</IsA>
<PartOf>programming.language.python3</PartOf>
<Summary>A library to manipulate font files from Python.</Summary>
<Description>
The project includes the TTX tool, that can convert TrueType and OpenType fonts to and from an XML text format, which is also called TTX. It supports TrueType, OpenType, AFM and to an extent Type 1 and some Mac-specific formats.
</Description>
<Archive sha1sum="76cc4a0f4007859d6d39cc9010a41f5eb4a68617" type="targz">
https://github.com/fonttools/fonttools/archive/refs/tags/4.38.0.tar.gz
</Archive>
<BuildDependencies>
<Dependency>cython3</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency>python3-setuptools</Dependency>
<Dependency>python3-importlib_metadata</Dependency>
</BuildDependencies>
<Patches>
<!-- <Patch level='1'></Patch> -->
</Patches>
</Source>
<Package>
<Name>python3-fonttools</Name>
<RuntimeDependencies>
<Dependency>python3</Dependency>
<Dependency>python3-importlib_metadata</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="data">/usr/lib/python3.9</Path>
<Path fileType="data">/usr/share/man/man1</Path>
<Path fileType="data">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2023-01-26</Date>
<Version>4.38.0</Version>
<Comment>First build.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
</History>
</PISI>
@@ -2,23 +2,21 @@
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pythonmodules, shelltools, pisitools
def setup():
# dodoc method cannot move LICENSE named dir, so i delete the directory
shelltools.unlinkDir("LICENSE")
pisitools.dosed("setupext.py", "LICENSE", deleteLine = True)
def build():
# suppress compiler warnings:
pisitools.cflags.add("-Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-stringop-truncation -Wno-unused-function")
# fix unused direct dependency analysis
shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread -lbz2")
pythonmodules.compile(pyVer="3")
pythonmodules.compile(pyVer = "3")
def install():
pythonmodules.install(pyVer="3")
pythonmodules.install(pyVer = "3")
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>python3-matplotlib</Name>
@@ -13,9 +13,12 @@
<IsA>library</IsA>
<Summary>matplotlib: plotting with Python.</Summary>
<Description>Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.</Description>
<Archive sha1sum="1367f8527fe5410d5ddfee0766a47bad820606c0" type="targz">https://github.com/matplotlib/matplotlib/archive/v3.3.1.tar.gz</Archive>
<Archive sha1sum="ec92f9521ffd3b7c0e434195319cda1587016952" type="targz">
https://files.pythonhosted.org/packages/source/m/matplotlib/matplotlib-3.6.3.tar.gz
</Archive>
<BuildDependencies>
<Dependency>pip3</Dependency>
<Dependency>python3-wheel</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency>python3-numpy</Dependency>
<Dependency>freetype-devel</Dependency>
@@ -32,7 +35,11 @@
<Dependency>freetype</Dependency>
<Dependency>python3-numpy</Dependency>
<Dependency>python3-cycler</Dependency>
<Dependency>python3-pillow</Dependency>
<Dependency>python3-dateutil</Dependency>
<Dependency>python3-fonttools</Dependency>
<Dependency>python3-contourpy</Dependency>
<Dependency>python3-packaging</Dependency>
<Dependency>python3-pyparsing</Dependency>
<Dependency>python3-kiwisolver</Dependency>
</RuntimeDependencies>
@@ -43,6 +50,13 @@
</Package>
<History>
<Update release="5">
<Date>2023-01-26</Date>
<Version>3.6.3</Version>
<Comment>Version bump.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
<Update release="4">
<Date>2023-01-23</Date>
<Version>3.3.1</Version>
@@ -5,4 +5,4 @@
<Summary xml:lang="tr">matplotlib: python grafik çizim kitaplığı.</Summary>
<Description xml:lang="tr">python3-matplotlib, python ile hareketli, durağan ve etkileşimli çizgeler yapılmasını sağlayan kapsamlı bir python kitaplığı sunar.</Description>
</Source>
</PISI>
</PISI>