mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Removed KyngChaos packages from docs.
See https://www.kyngchaos.com/2022/09/11/goodbye-software-packaging/
This commit is contained in:
parent
32268456d6
commit
9d9ec0c79f
@ -197,7 +197,6 @@ several different options for installing GeoDjango. These options are:
|
|||||||
|
|
||||||
* :ref:`postgresapp` (easiest and recommended)
|
* :ref:`postgresapp` (easiest and recommended)
|
||||||
* :ref:`homebrew`
|
* :ref:`homebrew`
|
||||||
* :ref:`kyngchaos`
|
|
||||||
* :ref:`fink`
|
* :ref:`fink`
|
||||||
* :ref:`macports`
|
* :ref:`macports`
|
||||||
* :ref:`build_from_source`
|
* :ref:`build_from_source`
|
||||||
@ -266,63 +265,6 @@ Summary::
|
|||||||
__ https://brew.sh/
|
__ https://brew.sh/
|
||||||
.. _Xcode: https://developer.apple.com/xcode/
|
.. _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:
|
||||||
|
|
||||||
Fink
|
Fink
|
||||||
|
@ -87,30 +87,7 @@ __ https://www.gaia-gis.it/gaia-sins/libspatialite-sources/
|
|||||||
macOS-specific instructions
|
macOS-specific instructions
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
To install the SpatiaLite library and tools, macOS users can choose between
|
To install the SpatiaLite library and tools, macOS users can use `Homebrew`_.
|
||||||
: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/
|
|
||||||
|
|
||||||
Homebrew
|
Homebrew
|
||||||
--------
|
--------
|
||||||
|
@ -246,7 +246,6 @@ kilometre
|
|||||||
Koziarski
|
Koziarski
|
||||||
kwarg
|
kwarg
|
||||||
kwargs
|
kwargs
|
||||||
Kyngesburye
|
|
||||||
Kyrgyz
|
Kyrgyz
|
||||||
latin
|
latin
|
||||||
lawrence
|
lawrence
|
||||||
|
Loading…
Reference in New Issue
Block a user