Summary: | dev-python/basemap-1.2.1 version bump and add python 3 support | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tiago de Paula Peixoto <tiago> |
Component: | [OLD] Development | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | anton.kochkov, dev, fcoiffie, it, mgorny, sci-geosciences, tb, tiago |
Priority: | Normal | Keywords: | PMASKED |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/matplotlib/basemap/blob/master/Changelog | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=705646 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 694800, 665688, 704212 | ||
Attachments: | Patch from basemap-1.0.7-r2 to basemap-1.1.0 |
Description
Tiago de Paula Peixoto
2013-09-08 19:08:50 UTC
I have removed sci-libs/geos dependency from ebuild (it seems to be bundled inside basemap itself) and dev-python/purynere dependency (have not found anything about it in the sources). It seems to work (partially?), at least using python 3.3. Tests in /usr/lib/python3.3/site-packages/mpl_toolkits/basemap/test.py passed. Do not know if this change could be considered safe. Diff against basemap-1.0.7-r1.ebuild follows: -PYTHON_COMPAT=( python2_7 ) +PYTHON_COMPAT=( python{2_7,3_3} ) @@ -20,4 +20,3 @@ CDEPEND="sci-libs/shapelib - >=dev-python/matplotlib-0.98[${PYTHON_USEDEP}] - >=sci-libs/geos-3.3.1[python,${PYTHON_USEDEP}]" + >=dev-python/matplotlib-0.98[${PYTHON_USEDEP}]" @@ -27,5 +26,3 @@ RDEPEND="${CDEPEND} - >=dev-python/pupynere-1.0.8[${PYTHON_USEDEP}] - dev-python/httplib2[${PYTHON_USEDEP}] - dev-python/dap[${PYTHON_USEDEP}]" + dev-python/httplib2[${PYTHON_USEDEP}]" Any news on this? Could need it for actual sci-visualization/pythonprop. This ebuild looks horribly bad. If someone wants to fix it, be my guest. Changes suggested by Tomas brings a working basemap into python-3.6.5 here. Michał, if the current ebuild is horrible, can't we at least make it an epsilon less bad by just enabling python3 support? Cleanup/rewrite might be nice to wish for, but it should not hold up essential functionality like this. Dependency on sci-libs/geos[python] should be reviewed. *** Bug 704688 has been marked as a duplicate of this bug. *** Hm, i don't know why my bug 704688 is a duplicate of this bug, and i'm pretty confident that i was able to compile sci-libs/geos-3.8.0 after 2017, so where is the real source of the current failure? Any help/ explanation appreciated! Created attachment 605890 [details, diff] Patch from basemap-1.0.7-r2 to basemap-1.1.0 Solution proposed by Tomas still works, nearly five years later... Currently, the problem with basemap is not python3 support, but rather the missing runtime dependencies which have been allowed to accumulate owing to sheer lethargy involved in enabling python3 in the ebuild. The attached patch (based on Tomas' changes) brings basemap-1.1.0 into python-3.6.9, but there may still be additional missing dependencies. In any case, basemap is being deprecated in favour of cartopy (https://scitools.org.uk/cartopy/docs/latest/), which is not yet in the tree. (In reply to MW from comment #8) > Created attachment 605890 [details, diff] [details, diff] > Patch from basemap-1.0.7-r2 to basemap-1.1.0 Taking a look at it, this is impossible: PYTHON_COMPAT=( python3_6 ) ... >=sci-libs/geos-3.3.1[${PYTHON_USEDEP}]" sci-libs/geos will never provide python3 support as it has been dropped upstream in favor of Shapely. (In reply to Andreas Sturmlechner from comment #9) > Taking a look at it, this is impossible: > > PYTHON_COMPAT=( python3_6 ) > ... > >=sci-libs/geos-3.3.1[${PYTHON_USEDEP}]" > > > sci-libs/geos will never provide python3 support as it has been dropped > upstream in favor of Shapely. I forgot that I have my own local version of =sci-libs/geos-3.7.0. However, the only change I have made is to set PYTHON_COMPAT=( python3_6 ) My point is that you can't do this as long as you depend on geos[$PYTHON_USEDEP]. No python3, plz, unless you are going to fix sci-visualization/pythonprop as well. Otherwise, this package is on its way out along with it. (In reply to Michał Górny from comment #12) > No python3, plz, unless you are going to fix sci-visualization/pythonprop as > well. Otherwise, this package is on its way out along with it. sci-vizualization/pythonprop switched away from basemap to cardopy in version 0.29. So I will try to bring cardopy to the tree in next days. |