[QGIS-Developer] [Qgis-user] Mac OS packages ...again!

Peter Petrik peter.petrik at lutraconsulting.co.uk
Mon Dec 3 22:47:46 PST 2018


Hi,

I need to investigate on this, for reference there is open issue
https://github.com/lutraconsulting/qgis-mac-packager/issues/41

Kind regards
Peter


On Mon, Dec 3, 2018 at 7:39 PM Tim Sutton <tim at kartoza.com> wrote:

>
>
> On 03 Dec 2018, at 20:29, Tim Sutton <tim at kartoza.com> wrote:
>
> Hi
>
>
>
> On 03 Dec 2018, at 09:32, Peter Petrik <peter.petrik at lutraconsulting.co.uk>
> wrote:
>
> Hi,
>
> Python is already bundled in our package. The package is really
> standalone, so you do not need to have anything else installed. The note
> about Python is that, unfortunately, the python distribution we use ATM is
> not compatible with MacOS 10.11 and 10.12. One way how to fix it is
> probably use Python official distribution and not Homebrew distribution in
> the process of creation of our package.
>
>
> Ah ok cool thanks for the clarification. I can confirm that the package I
> downloaded last night picks up the python interpreter inside the bundle
> nicely:
>
> import sys
> for p in sys.path:
> print(p)
> /Users/timlinux/Library/Application
> Support/QGIS/QGIS3/profiles/default/python/plugins/karika
> /Applications/QGIS3.4.2.app/Contents/MacOS/../Resources/python
> /Users/timlinux/Library/Application
> Support/QGIS/QGIS3/profiles/default/python
> /Users/timlinux/Library/Application
> Support/QGIS/QGIS3/profiles/default/python/plugins
> /Applications/QGIS3.4.2.app/Contents/MacOS/../Resources/python/plugins
>
> /Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python37.zip
>
> /Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/lib-dynload
> /Applications/QGIS3.4.2.app/Contents/Resources/python
>
> /Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages
>
>
> What is the recommended way to install additional deps (e.g. via pip) into
> the bundled python environment? If we try to just directly  use the python
> interpreter (see below) it does not have the correct python path:
>
>
>
> [timlinux at sandstone
>  /Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/3.7/bin]$ ./python3.7
> Python 2.7.10 (default, Aug 17 2018, 17:41:52)
> [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sys
> >>> for p in sys.path:
> ...     print(p)
> ...
>
> /Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7
> /Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/site-packages
> /Library/Python/2.7/site-packages/numpy-override
> /Library/Python/2.7/site-packages/matplotlib-override
> /Library/Frameworks/GDAL.framework/Versions/2.1/Python/2.7/site-packages
> /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg
> /Library/Python/2.7/site-packages/pycharm-debug.egg
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
> /Users/timlinux/Library/Python/2.7/lib/python/site-packages
> /usr/local/lib/python2.7/site-packages
> /usr/local/lib/python2.7/site-packages/pycharm-debug.egg
> /usr/local/lib/python2.7/site-packages/geos
> /usr/local/Cellar/numpy/1.15.3/libexec/nose/lib/python2.7/site-packages
> /usr/local/lib/python2.7/site-packages/wx-3.0-osx_cocoa
> /Library/Python/2.7/site-packages
> /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
> >>>
> KeyboardInterrupt
> >>> quit()
>
> Maybe we need to bundle in pip and a tool from within QGIS to call pip
> (some examples were given on this mailing list in the past) from within
> QGIS so that the python interpreter has the correct context….this would
> probably be useful for windows users too?
>
>
>
> Regards
>
> Tim
>
>
> —
>
>
>
>
>
>
>
> *Tim Sutton*
>
> *Co-founder:* Kartoza
> *Ex Project chair:* QGIS.org
>
> Visit http://kartoza.com to find out about open source:
>
> Desktop GIS programming services
> Geospatial web development
> GIS Training
> Consulting Services
>
> *Skype*: timlinux
> *IRC:* timlinux on #qgis at freenode.net
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20181204/92d61726/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KartozaNewLogoThumbnail.jpg
Type: image/jpeg
Size: 6122 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20181204/92d61726/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KartozaNewLogoThumbnail.jpg
Type: image/jpeg
Size: 6122 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20181204/92d61726/attachment-0003.jpg>


More information about the QGIS-Developer mailing list