Opened 10 years ago

Closed 10 years ago

#45751 closed defect (fixed)

gdal py-gdal: gdal +python2? and py2?-gdal are conflicting

Reported by: petrrr Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cooljeanius (Eric Gallager)
Port: gdal py-gdal

Description

Port gdal offers variants +python2? to install Python language bindings. py-gdal installs a python package (provided by the GDAL project as well), which installs the same set of files and provides the same functionality. Only the version differs slightly (see below for details). This creates a conflict.

I believe, py-gdal is the more appropriate port to handle Python bindings. So we should get rid of the +python2? variants in favor of py-gdal. Adding dependencies on port:py2?-gdal to the variants is not possible as this would create cyclic dependence. So there is probably no smooth upgrade path for users, which installed gdal with a python variant.

CCing also egall and vince, as they showed interest in gdal before.

gdal +python27:

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-1.11.0-py2.7.egg-info
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gdal.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gdal.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gdalconst.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gdalconst.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gdalnumeric.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gdalnumeric.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ogr.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ogr.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osr.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osr.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/__init__.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/__init__.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/_gdal.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/_gdal_array.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/_gdalconst.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/_ogr.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/_osr.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdal.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdal.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdal_array.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdal_array.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdalconst.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdalconst.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdalnumeric.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdalnumeric.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/ogr.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/ogr.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/osr.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/osr.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-1.11.0-py2.7.egg-info/dependency_links.txt
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-1.11.0-py2.7.egg-info/not-zip-safe
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-1.11.0-py2.7.egg-info/PKG-INFO
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-1.11.0-py2.7.egg-info/SOURCES.txt
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-1.11.0-py2.7.egg-info/top_level.txt

py27-gdal:

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-1.11.1-py2.7.egg-info/
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gdal.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gdal.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gdalconst.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gdalconst.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gdalnumeric.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gdalnumeric.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ogr.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ogr.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osr.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osr.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/__init__.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/__init__.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/_gdal.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/_gdal_array.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/_gdalconst.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/_ogr.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/_osr.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdal.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdal.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdal_array.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdal_array.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdalconst.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdalconst.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdalnumeric.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/gdalnumeric.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/ogr.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/ogr.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/osr.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osgeo/osr.pyc
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-1.11.1-py2.7.egg-info/dependency_links.txt
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-1.11.1-py2.7.egg-info/not-zip-safe
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-1.11.1-py2.7.egg-info/PKG-INFO
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-1.11.1-py2.7.egg-info/SOURCES.txt
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/GDAL-1.11.1-py2.7.egg-info/top_level.txt

Change History (7)

comment:1 Changed 10 years ago by petrrr

Cc: vince@… removed
Owner: changed from macports-tickets@… to vince@…

comment:2 Changed 10 years ago by petrrr

Vincent, can we remove the +python2? variants from gdal? I am assigning this to you, but I can do this as well if you agree.

comment:3 Changed 10 years ago by Veence (Vincent)

Resolution: fixed
Status: newclosed

I will remove the python27 option in gdal. r128525

comment:4 Changed 10 years ago by petrrr

Vincent, thanks!

Looking at this again, I am just wondering if we should not keep a *deprecation version* of this variant for a while. This would help to provide a smoother upgrade path for people, who had installed with this variant. I'd suggest to have a console output in pre-configure, when people try to update with this variant active with the hint that they should install py27-gdal instead. Doing this automatically is unfortunately not possible due the the dependency.

comment:5 Changed 10 years ago by petrrr

Resolution: fixed
Status: closedreopened

comment:6 Changed 10 years ago by petrrr

I reopen, just to keep track this ...

comment:7 Changed 10 years ago by petrrr

Resolution: fixed
Status: reopenedclosed

This seems to have not caused any issues so far, so just closing again ...

Note: See TracTickets for help on using tickets.