1
0
mirror of https://github.com/django/django.git synced 2025-04-05 22:16:41 +00:00

[4.1.x] Removed KyngChaos packages from docs.

See https://www.kyngchaos.com/2022/09/11/goodbye-software-packaging/
Backport of 9d9ec0c79f52efad3a4d3f6ac4644d5c9fb1d22c from main
This commit is contained in:
Mariusz Felisiak 2022-12-14 11:18:18 +01:00
parent af3cfc8630
commit 1106c99a1f
3 changed files with 1 additions and 83 deletions

View File

@ -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

View File

@ -87,30 +87,7 @@ __ https://www.gaia-gis.it/gaia-sins/libspatialite-sources/
macOS-specific instructions
==============================
To install the SpatiaLite library and tools, macOS users can choose between
:ref:`kyngchaos` and `Homebrew`_.
KyngChaos
---------
First, follow the instructions in the :ref:`kyngchaos` section.
When creating a SpatiaLite database, the ``spatialite`` program is required.
However, instead of attempting to compile the SpatiaLite tools from source,
download the `SpatiaLite Tools`__ package for macOS, and install ``spatialite``
in a location available in your ``PATH``. For example::
$ curl -O https://www.kyngchaos.com/files/software/frameworks/Spatialite_Tools-4.3.zip
$ unzip Spatialite_Tools-4.3.zip
$ cd Spatialite\ Tools/tools
$ sudo cp spatialite /Library/Frameworks/SQLite3.framework/Programs
Finally, for GeoDjango to be able to find the KyngChaos SpatiaLite library,
add the following to your ``settings.py``::
SPATIALITE_LIBRARY_PATH='/Library/Frameworks/SQLite3.framework/SQLite3'
__ https://www.kyngchaos.com/software/frameworks/
To install the SpatiaLite library and tools, macOS users can use `Homebrew`_.
Homebrew
--------

View File

@ -246,7 +246,6 @@ kilometre
Koziarski
kwarg
kwargs
Kyngesburye
Kyrgyz
latin
lawrence