Skip to contentSkip to conversation

Add python3 matplotlib

PATCH In review Guy Morand 4 participants 9 messages Sep 22, 2017 – Sep 28, 2017

lore
Share & tools
lore

Guy Morand

author
#0 lore raw

PATCH 1/3 Add python3 matplotlib

---
 .../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
meta-python/recipes-devtools/python/python-matplotlib/files/0001-fix_setup.diff new file +13 -0
new file mode 100644
index 0000000..8f1b505
@@ -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():
meta-python/recipes-devtools/python/python-matplotlib/python-matplotlib.inc new file +32 -0
new file mode 100644
index 0000000..74dcf97
@@ -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 \
+  "
meta-python/recipes-devtools/python/python-matplotlib/python3-matplotlib_2.0.2.bb new file +6 -0
new file mode 100644
index 0000000..7e309b2
@@ -0,0 +1,6 @@
+inherit setuptools3
+require python-matplotlib.inc
+
+SRC_URI[md5sum] = "061111784278bde89b5d4987014be4ca"
+SRC_URI[sha256sum] = "0ffbc44faa34a8b1704bc108c451ecf87988f900ef7ce757b8e2e84383121ff1"
+
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 2/3 Add python3 cycler

---
 .../recipes-devtools/python/python-cycler/python-cycler.inc | 13 +++++++++++++
 .../python/python-cycler/python3-cycler_0.10.0.bb           |  6 ++++++
 2 files changed, 19 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-cycler/python-cycler.inc
 create mode 100644 meta-python/recipes-devtools/python/python-cycler/python3-cycler_0.10.0.bb
meta-python/recipes-devtools/python/python-cycler/python-cycler.inc new file +13 -0
new file mode 100644
index 0000000..3351b27
@@ -0,0 +1,13 @@
+SUMMARY  = "cycler consists of a class Cycler and a concatenation"
+DESCRIPTION = "The public API of cycler consists of a class Cycler, a \
+factory function cycler(), and a concatenation function concat(). The \
+factory function provides a simple interface for creating ‘base’ \
+Cycler objects while the class takes care of the composition and \
+iteration logic."
+HOMEPAGE = "http://matplotlib.org/cycler/"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=7713fe42cd766b15c710e19392bfa811"
+
+PYPI_PACKAGE = "cycler"
+
+inherit pypi
meta-python/recipes-devtools/python/python-cycler/python3-cycler_0.10.0.bb new file +6 -0
new file mode 100644
index 0000000..518adba
@@ -0,0 +1,6 @@
+inherit setuptools3
+require python-cycler.inc
+
+SRC_URI[md5sum] = "4cb42917ac5007d1cdff6cccfe2d016b"
+SRC_URI[sha256sum] = "cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8"
+
Signature · 1 line
2.7.4
author
#2 lore raw

PATCH 3/3 Add python3 pandas

In reply to Guy Morand
---
 .../python/python-pandas/python-pandas.inc          | 21 +++++++++++++++++++++
 .../python/python-pandas/python3-pandas_0.20.3.bb   |  5 +++++
 2 files changed, 26 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-pandas/python-pandas.inc
 create mode 100644 meta-python/recipes-devtools/python/python-pandas/python3-pandas_0.20.3.bb
meta-python/recipes-devtools/python/python-pandas/python-pandas.inc new file +21 -0
new file mode 100644
index 0000000..9ca3806
@@ -0,0 +1,21 @@
+SUMMARY  = "pandas library for high-performance data analysis tools"
+DESCRIPTION = "pandas is an open source, BSD-licensed library providing \
+high-performance, easy-to-use data structures and data analysis tools for \
+the Python programming language."
+HOMEPAGE = "http://pandas.pydata.org/"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=66017d3134349017409386be85176145"
+
+PYPI_PACKAGE = "pandas"
+
+inherit pypi
+
+DEPENDS += " \
+  ${PYTHON_PN}-numpy-native \
+  "
+
+RDEPENDS_${PN} += " \
+  ${PYTHON_PN}-numpy \
+  ${PYTHON_PN}-dateutil \
+  ${PYTHON_PN}-pytz \
+  "
meta-python/recipes-devtools/python/python-pandas/python3-pandas_0.20.3.bb new file +5 -0
new file mode 100644
index 0000000..81dd360
@@ -0,0 +1,5 @@
+inherit setuptools3
+require python-pandas.inc
+
+SRC_URI[md5sum] = "4df858f28b4bf4fa07d9fbb7f2568173"
+SRC_URI[sha256sum] = "a777e07633d83d546c55706420179551c8e01075b53c497dcf8ae4036766bc66"
Signature · 1 line
2.7.4
#3 lore raw
In reply to Guy Morand

The directory layout for the .inc and python3 recipe doesn't match the rest of the repo. Same for the other patches in this patchset.

Quoted 105 lines · Guy Morand
---
 .../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

(quoted diff) +0 -0

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

meta-python/recipes-devtools/python/python- new file +0 -0

matplotlib/files/0001-fix_setup.diff

meta-python/recipes-devtools/python/python- new file +13 -0
@@ -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():
(quoted diff) +0 -0

matplotlib/python-matplotlib.inc b/meta-python/recipes- devtools/python/python-matplotlib/python-matplotlib.inc new file mode 100644
index 0000000..74dcf97

meta-python/recipes-devtools/python/python- new file +0 -0

matplotlib/python-matplotlib.inc

meta-python/recipes-devtools/python/python- new file +3 -0
@@ -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 \

meta-python/recipes-devtools/python/python- new file +4 -0
+four graphical user interface toolkits."
+HOMEPAGE = "https://matplotlib.org/"
+LICENSE = "PSF"
+LIC_FILES_CHKSUM = "file://LICENSE/LICENSE;md5=

afec61498aa5f0c45936687da9a53d74"

meta-python/recipes-devtools/python/python- new file +23 -0
+
+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 \
+  "
(quoted diff) +0 -0

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

meta-python/recipes-devtools/python/python-matplotlib/ new file +0 -0

python3-matplotlib_2.0.2.bb

meta-python/recipes-devtools/python/python-matplotlib/ new file +5 -0
@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#4 lore raw
In reply to Guy Morand

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!

Quoted 105 lines · Guy Morand
---
 .../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

(quoted diff) +0 -0

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

meta-python/recipes-devtools/python/python- new file +0 -0

matplotlib/files/0001-fix_setup.diff

meta-python/recipes-devtools/python/python- new file +13 -0
@@ -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():
(quoted diff) +0 -0

matplotlib/python-matplotlib.inc b/meta-python/recipes- devtools/python/python-matplotlib/python-matplotlib.inc new file mode 100644
index 0000000..74dcf97

meta-python/recipes-devtools/python/python- new file +0 -0

matplotlib/python-matplotlib.inc

meta-python/recipes-devtools/python/python- new file +3 -0
@@ -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 \

meta-python/recipes-devtools/python/python- new file +4 -0
+four graphical user interface toolkits."
+HOMEPAGE = "https://matplotlib.org/"
+LICENSE = "PSF"
+LIC_FILES_CHKSUM = "file://LICENSE/LICENSE;md5=

afec61498aa5f0c45936687da9a53d74"

meta-python/recipes-devtools/python/python- new file +23 -0
+
+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 \
+  "
(quoted diff) +0 -0

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

meta-python/recipes-devtools/python/python-matplotlib/ new file +0 -0

python3-matplotlib_2.0.2.bb

meta-python/recipes-devtools/python/python-matplotlib/ new file +5 -0
@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#5 lore raw

Derek,

Arrgg I just copied the recipe from my meta-layer that has a different structure! Sorry for wasting your time with my worthless patches, I'll try better!

Thanks anyway for your feedbacks!

Best regards,

Guy

Quoted 119 lines · Derek Straka

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 <[email protected] <mailto:[email protected]>> wrote:

    ---
     .../python-matplotlib/files/0001-fix_setup.diff    | 13 +++++++++
     .../python/python-matplotlib/python-matplotlib.inc | 32
    ++++++++++++++++++++++
     .../python-matplotlib/python3-matplotlib_2.0.2.bb
    <http://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
    <http://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
    <http://python3-matplotlib_2.0.2.bb>
    b/meta-python/recipes-devtools/python/python-matplotlib/python3-matplotlib_2.0.2.bb
    <http://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
    <http://python3-matplotlib_2.0.2.bb>
    @@ -0,0 +1,6 @@
    +inherit setuptools3
    +require python-matplotlib.inc
    +
    +SRC_URI[md5sum] = "061111784278bde89b5d4987014be4ca"
    +SRC_URI[sha256sum] =
    "0ffbc44faa34a8b1704bc108c451ecf87988f900ef7ce757b8e2e84383121ff1"
    +
    --
    2.7.4

    --
    _______________________________________________
    Openembedded-devel mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.openembedded.org/mailman/listinfo/openembedded-devel
    <http://lists.openembedded.org/mailman/listinfo/openembedded-devel>
#6 lore raw

FYI, I have a related series in progress, but I can and will happily rebase on top of yours. My series is much more complicated for reasons that I will send to the ML when I get a couple more dependent packages being picked up by matplotlib properly. It will be worth the wait :)

—Tim

Quoted 15 lines · Guy Morand

Derek,

Arrgg I just copied the recipe from my meta-layer that has a different structure! Sorry for wasting your time with my worthless patches, I'll try better!

Thanks anyway for your feedbacks!

Best regards,

Guy

Quoted 2 lines · Derek Straka

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!

author
#7 lore raw

Tim,

Ok good about matplotlib, this one is not an easy beast :p! Have you also planned to integrate pandas? Otherwise I will happily just send a better patch just for this one!

Best regards,

Guy

Quoted 20 lines · Tim Orling

FYI, I have a related series in progress, but I can and will happily rebase on top of yours. My series is much more complicated for reasons that I will send to the ML when I get a couple more dependent packages being picked up by matplotlib properly. It will be worth the wait :)

—Tim

Quoted 15 lines · Guy Morand

Derek,

Arrgg I just copied the recipe from my meta-layer that has a different structure! Sorry for wasting your time with my worthless patches, I'll try better!

Thanks anyway for your feedbacks!

Best regards,

Guy

Quoted 2 lines · Derek Straka

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!

#8 lore raw
Quoted 5 lines · Guy Morand

Tim,

Ok good about matplotlib, this one is not an easy beast :p! Have you also planned to integrate pandas?

No plans for pandas at this time.

Otherwise I will happily just send a

Quoted 1 line

better patch just for this one!

Go ahead and send a v2. Thank you.

Quoted 1 line