mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
package/python-matplotlib: new package
Matplotlib is a Python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms. More information is available at: https://matplotlib.org/. Signed-off-by: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr> [Peter: use Python-2.0 for license, fix license file, add host-pkgconf] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
e96c1b244e
commit
d80339c965
@ -1229,6 +1229,7 @@ F: package/qt5/qt5wayland/
|
|||||||
|
|
||||||
N: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr>
|
N: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr>
|
||||||
F: package/python-cycler/
|
F: package/python-cycler/
|
||||||
|
F: package/python-matplotlib/
|
||||||
|
|
||||||
N: Juha Rantanen <juha@codercoded.com>
|
N: Juha Rantanen <juha@codercoded.com>
|
||||||
F: package/acsccid/
|
F: package/acsccid/
|
||||||
|
@ -933,6 +933,7 @@ menu "External python modules"
|
|||||||
source "package/python-markdown/Config.in"
|
source "package/python-markdown/Config.in"
|
||||||
source "package/python-markdown2/Config.in"
|
source "package/python-markdown2/Config.in"
|
||||||
source "package/python-markupsafe/Config.in"
|
source "package/python-markupsafe/Config.in"
|
||||||
|
source "package/python-matplotlib/Config.in"
|
||||||
source "package/python-mbstrdecoder/Config.in"
|
source "package/python-mbstrdecoder/Config.in"
|
||||||
source "package/python-meld3/Config.in"
|
source "package/python-meld3/Config.in"
|
||||||
source "package/python-mimeparse/Config.in"
|
source "package/python-mimeparse/Config.in"
|
||||||
|
@ -0,0 +1,29 @@
|
|||||||
|
From b0232c3cf1051749dd1e2bd0ec7c5c0a3a008d2f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr>
|
||||||
|
Date: Thu, 9 May 2019 15:06:36 +0200
|
||||||
|
Subject: [PATCH] Fix invalid inclusion headers
|
||||||
|
|
||||||
|
By default, matplotlib includes headers from host
|
||||||
|
machine which breaks the build process.
|
||||||
|
|
||||||
|
Signed-off-by: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr>
|
||||||
|
---
|
||||||
|
python-matplotlib-3.0.3/setupext.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/setupext.py b/setupext.py
|
||||||
|
index fc82d5d..eb978d2 100644
|
||||||
|
--- a/setupext.py
|
||||||
|
+++ b/setupext.py
|
||||||
|
@@ -267,7 +267,7 @@ def get_base_dirs():
|
||||||
|
'gnu0': ['/usr'],
|
||||||
|
'aix5': ['/usr/local'],
|
||||||
|
}
|
||||||
|
- return basedir_map.get(sys.platform, ['/usr/local', '/usr'])
|
||||||
|
+ return basedir_map.get(sys.platform, [])
|
||||||
|
|
||||||
|
|
||||||
|
def get_include_dirs():
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
22
package/python-matplotlib/Config.in
Normal file
22
package/python-matplotlib/Config.in
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
config BR2_PACKAGE_PYTHON_MATPLOTLIB
|
||||||
|
bool "python-matplotlib"
|
||||||
|
depends on !BR2_PACKAGE_PYTHON
|
||||||
|
depends on BR2_PACKAGE_PYTHON3
|
||||||
|
select BR2_PACKAGE_FREETYPE # runtime
|
||||||
|
select BR2_PACKAGE_LIBPNG # runtime
|
||||||
|
select BR2_PACKAGE_PYTHON_CYCLER
|
||||||
|
select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime
|
||||||
|
select BR2_PACKAGE_PYTHON_DATEUTIL # runtime
|
||||||
|
select BR2_PACKAGE_PYTHON_NUMPY # runtime
|
||||||
|
select BR2_PACKAGE_PYTHON_PYPARSING # runtime
|
||||||
|
select BR2_PACKAGE_PYTHON3_ZLIB # runtime
|
||||||
|
select BR2_PACKAGE_ZLIB # runtime
|
||||||
|
help
|
||||||
|
Matplotlib strives to produce publication
|
||||||
|
quality 2D graphics for interactive graphing,
|
||||||
|
scientific publishing, user interface
|
||||||
|
development and web application servers targeting
|
||||||
|
multiple user interfaces and hardcopy output
|
||||||
|
formats.
|
||||||
|
|
||||||
|
https://matplotlib.org/
|
4
package/python-matplotlib/python-matplotlib.hash
Normal file
4
package/python-matplotlib/python-matplotlib.hash
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# sha256 from https://pypi.org/project/matplotlib/#files
|
||||||
|
sha256 e1d33589e32f482d0a7d1957bf473d43341115d40d33f578dad44432e47df7b7 matplotlib-3.0.3.tar.gz
|
||||||
|
# Locally computed sha256 checksums
|
||||||
|
sha256 5a1a81ea301728c8bba2933da832c0cd62229daf20893a024ab3d53244468dbc LICENSE/LICENSE
|
16
package/python-matplotlib/python-matplotlib.mk
Normal file
16
package/python-matplotlib/python-matplotlib.mk
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# python-matplotlib
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
PYTHON_MATPLOTLIB_VERSION = 3.0.3
|
||||||
|
PYTHON_MATPLOTLIB_SOURCE = matplotlib-$(PYTHON_MATPLOTLIB_VERSION).tar.gz
|
||||||
|
PYTHON_MATPLOTLIB_SITE = https://files.pythonhosted.org/packages/26/04/8b381d5b166508cc258632b225adbafec49bbe69aa9a4fa1f1b461428313
|
||||||
|
PYTHON_MATPLOTLIB_LICENSE = Python-2.0
|
||||||
|
PYTHON_MATPLOTLIB_LICENSE_FILES = LICENSE/LICENSE
|
||||||
|
PYTHON_MATPLOTLIB_DEPENDENCIES = host-pkgconf freetype host-python-numpy \
|
||||||
|
libpng python-cycler
|
||||||
|
PYTHON_MATPLOTLIB_SETUP_TYPE = setuptools
|
||||||
|
|
||||||
|
$(eval $(python-package))
|
Loading…
x
Reference in New Issue
Block a user