[oe] [meta-python][PATCH 1/3] Add python3 matplotlib

Derek Straka derek at asterius.io
Mon Sep 25 22:40:36 UTC 2017


Also, could you incorporate the changes into the existing python-* recipes
so they both use the .inc files.  It makes my automated updates easier.
Thanks!

On Fri, Sep 22, 2017 at 6:24 AM, Guy Morand <guy at guy-morand.ch> wrote:

> ---
>  .../python-matplotlib/files/0001-fix_setup.diff    | 13 +++++++++
>  .../python/python-matplotlib/python-matplotlib.inc | 32
> ++++++++++++++++++++++
>  .../python-matplotlib/python3-matplotlib_2.0.2.bb  |  6 ++++
>  3 files changed, 51 insertions(+)
>  create mode 100644 meta-python/recipes-devtools/python/python-matplotlib/
> files/0001-fix_setup.diff
>  create mode 100644 meta-python/recipes-devtools/python/python-matplotlib/
> python-matplotlib.inc
>  create mode 100644 meta-python/recipes-devtools/python/python-matplotlib/
> python3-matplotlib_2.0.2.bb
>
> diff --git a/meta-python/recipes-devtools/python/python-
> matplotlib/files/0001-fix_setup.diff b/meta-python/recipes-
> devtools/python/python-matplotlib/files/0001-fix_setup.diff
> new file mode 100644
> index 0000000..8f1b505
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python-
> matplotlib/files/0001-fix_setup.diff
> @@ -0,0 +1,13 @@
> +Index: matplotlib-2.0.2/setupext.py
> +===================================================================
> +--- matplotlib-2.0.2.orig/setupext.py
> ++++ matplotlib-2.0.2/setupext.py
> +@@ -182,7 +182,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, [os.environ['STAGING_LIBDIR']])
> +
> +
> + def get_include_dirs():
> diff --git a/meta-python/recipes-devtools/python/python-
> matplotlib/python-matplotlib.inc b/meta-python/recipes-
> devtools/python/python-matplotlib/python-matplotlib.inc
> new file mode 100644
> index 0000000..74dcf97
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python-
> matplotlib/python-matplotlib.inc
> @@ -0,0 +1,32 @@
> +SUMMARY  = "Matplotlib produces publication quality figures"
> +DESCRIPTION = "Matplotlib is a Python 2D plotting library which produces \
> +publication quality figures in a variety of hardcopy formats and
> interactive \
> +environments across platforms. Matplotlib can be used in Python scripts,
> the \
> +Python and IPython shell, the jupyter notebook, web application servers,
> and \
> +four graphical user interface toolkits."
> +HOMEPAGE = "https://matplotlib.org/"
> +LICENSE = "PSF"
> +LIC_FILES_CHKSUM = "file://LICENSE/LICENSE;md5=
> afec61498aa5f0c45936687da9a53d74"
> +
> +PYPI_PACKAGE = "matplotlib"
> +
> +inherit pypi
> +
> +SRC_URI += "\
> +  file://0001-fix_setup.diff \
> +  "
> +
> +DEPENDS += " \
> +  ${PYTHON_PN}-numpy-native \
> +  freetype \
> +  libpng \
> +  "
> +
> +RDEPENDS_${PN} += " \
> +  ${PYTHON_PN}-numpy \
> +  ${PYTHON_PN}-dateutil \
> +  ${PYTHON_PN}-pyparsing \
> +  ${PYTHON_PN}-pytz \
> +  ${PYTHON_PN}-six \
> +  ${PYTHON_PN}-cycler \
> +  "
> diff --git a/meta-python/recipes-devtools/python/python-matplotlib/
> python3-matplotlib_2.0.2.bb b/meta-python/recipes-devtools/python/python-
> matplotlib/python3-matplotlib_2.0.2.bb
> new file mode 100644
> index 0000000..7e309b2
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python-matplotlib/
> python3-matplotlib_2.0.2.bb
> @@ -0,0 +1,6 @@
> +inherit setuptools3
> +require python-matplotlib.inc
> +
> +SRC_URI[md5sum] = "061111784278bde89b5d4987014be4ca"
> +SRC_URI[sha256sum] = "0ffbc44faa34a8b1704bc108c451ec
> f87988f900ef7ce757b8e2e84383121ff1"
> +
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>



More information about the Openembedded-devel mailing list