Skip to contentSkip to conversation

python-pytz: add 2014.7

PATCH New Tim Orling 1 participant 2 messages Oct 13, 2014

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

PATCH 1/2 python-pytz: add 2014.7

python-matplotlib is providing its own pytz and dateutil. Provide our own pytz (and then fix matplotlib).

---
 .../recipes-devtools/python/python-pytz_2014.7.bb     | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-pytz_2014.7.bb
meta-python/recipes-devtools/python/python-pytz_2014.7.bb new file +19 -0
new file mode 100644
index 0000000..92d0796
@@ -0,0 +1,19 @@
+SUMMARY = "World timezone definitions, modern and historical"
+HOMEPAGE = " http://pythonhosted.org/pytz"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=22b38951eb857cf285a4560a914b7cd6"
+SRCNAME = "pytz"
+
+SRC_URI = "https://pypi.python.org/packages/source/p/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+RDEPENDS_${PN} = "\
+    python-core \
+    python-datetime \
+"
+
+SRC_URI[md5sum] = "8940ddae309e44b593c75a9e05dd2a0b"
+SRC_URI[sha256sum] = "bfc2bd00147e5ecf75399f4a94cb84cc00ce9b511a15f9958bb6c85a455f76eb"
Signature · 1 line
1.9.3
author
#1 lore raw

PATCH 2/2 python-matplotlib: add dateutil & pytz to DEPENDS/RDEPENDS

python-matplotlib is currently providing its own dateutil and pytz Add dateutil and pytz as DEPENDS/RDEPENDS.
Patch setupext.py to no longer provide its own dateutil and pytz. Remove python-matplotlib from blacklist.

---
 .../python/python-matplotlib/fix_setupext.patch       | 19 +++++++++++++++----
 .../python/python-matplotlib_1.1.0.bb                 |  7 ++-----
 2 files changed, 17 insertions(+), 9 deletions(-)
meta-python/recipes-devtools/python/python-matplotlib/fix_setupext.patch +15 -4
index e071595..9a13a18 100644
@@ -1,9 +1,20 @@
 This fixes the numpy import problem in setupext.py using a hard-coded path.
 
-diff --git a/setupext.py b/setupext.py
-index 962cedc..82297c4 100644
---- a/setupext.py
-+++ b/setupext.py
+Index: matplotlib-1.1.0/setupext.py
+===================================================================
+--- matplotlib-1.1.0.orig/setupext.py
++++ matplotlib-1.1.0/setupext.py
+@@ -122,8 +122,8 @@ numpy_inc_dirs = []
+ # matplotlib build options, which can be altered using setup.cfg
+ options = {'display_status': True,
+            'verbose': False,
+-           'provide_pytz': 'auto',
+-           'provide_dateutil': 'auto',
++           'provide_pytz': False,
++           'provide_dateutil': False,
+            'build_agg': True,
+            'build_gtk': 'auto',
+            'build_gtkagg': 'auto',
 @@ -176,10 +176,7 @@ if os.path.exists(setup_cfg):
      except: pass
  
meta-python/recipes-devtools/python/python-matplotlib_1.1.0.bb +2 -5
index 6c8a202..69f71c7 100644
@@ -4,11 +4,8 @@ LICENSE = "PSF"
 LIC_FILES_CHKSUM = "file://README.txt;md5=83c5bf8b16a5f99507f2f47a21ae3b81"
 PR = "r1"
 
-DEPENDS += "python-numpy freetype libpng"
-RDEPENDS_${PN} = "python-core python-distutils python-numpy freetype libpng"
-
-PNBLACKLIST[python-matplotlib] = "CONFLICT: 34 files with python-dateutil"
-# e.g. sysroots/qemux86-64/usr/lib/python2.7/site-packages/dateutil/tzwin.pyc
+DEPENDS += "python-numpy freetype libpng python-dateutil python-pytz"
+RDEPENDS_${PN} = "python-core python-distutils python-numpy freetype libpng python-dateutil python-pytz"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/matplotlib/matplotlib-${PV}.tar.gz \
            file://fix_setup.patch \
Signature · 1 line
1.9.3