|
@@ -197,7 +197,6 @@ several different options for installing GeoDjango. These options are:
|
|
|
|
|
|
* :ref:`postgresapp` (easiest and recommended)
|
|
|
* :ref:`homebrew`
|
|
|
-* :ref:`kyngchaos`
|
|
|
* :ref:`fink`
|
|
|
* :ref:`macports`
|
|
|
* :ref:`build_from_source`
|
|
@@ -266,63 +265,6 @@ Summary::
|
|
|
__ https://brew.sh/
|
|
|
.. _Xcode: https://developer.apple.com/xcode/
|
|
|
|
|
|
-.. _kyngchaos:
|
|
|
-
|
|
|
-KyngChaos packages
|
|
|
-~~~~~~~~~~~~~~~~~~
|
|
|
-
|
|
|
-William Kyngesburye provides a number of `geospatial library binary packages`__
|
|
|
-that help to get GeoDjango installed on macOS without compiling them from
|
|
|
-source. However, `Xcode`_ is still necessary for compiling the Python database
|
|
|
-adapters :ref:`psycopg2_kyngchaos` (for PostGIS).
|
|
|
-
|
|
|
-.. note::
|
|
|
-
|
|
|
- SpatiaLite users should consult the :ref:`spatialite_macos` section
|
|
|
- after installing the packages for additional instructions.
|
|
|
-
|
|
|
-Download the framework packages for:
|
|
|
-
|
|
|
-* UnixImageIO
|
|
|
-* PROJ
|
|
|
-* GEOS
|
|
|
-* SQLite3 (includes the SpatiaLite library)
|
|
|
-* GDAL
|
|
|
-
|
|
|
-Install the packages in the order they are listed above, as the GDAL and SQLite
|
|
|
-packages require the packages listed before them.
|
|
|
-
|
|
|
-Afterward, you can also install the KyngChaos binary packages for `PostgreSQL
|
|
|
-and PostGIS`__.
|
|
|
-
|
|
|
-After installing the binary packages, you'll want to add the following to
|
|
|
-your ``.profile`` to be able to run the package programs from the command-line::
|
|
|
-
|
|
|
- export PATH=/Library/Frameworks/UnixImageIO.framework/Programs:$PATH
|
|
|
- export PATH=/Library/Frameworks/PROJ.framework/Programs:$PATH
|
|
|
- export PATH=/Library/Frameworks/GEOS.framework/Programs:$PATH
|
|
|
- export PATH=/Library/Frameworks/SQLite3.framework/Programs:$PATH
|
|
|
- export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH
|
|
|
- export PATH=/usr/local/pgsql/bin:$PATH
|
|
|
-
|
|
|
-__ https://www.kyngchaos.com/software/frameworks
|
|
|
-__ https://www.kyngchaos.com/software/postgres
|
|
|
-
|
|
|
-.. _psycopg2_kyngchaos:
|
|
|
-
|
|
|
-psycopg2
|
|
|
-^^^^^^^^
|
|
|
-
|
|
|
-After you've installed the KyngChaos binaries and modified your ``PATH``, as
|
|
|
-described above, ``psycopg2`` may be installed using the following command::
|
|
|
-
|
|
|
- $ python -m pip install psycopg2
|
|
|
-
|
|
|
-.. note::
|
|
|
-
|
|
|
- If you don't have ``pip``, follow the :ref:`installation instructions
|
|
|
- <installing-official-release>` to install it.
|
|
|
-
|
|
|
.. _fink:
|
|
|
|
|
|
Fink
|