summaryrefslogtreecommitdiff
path: root/docs/userguide
diff options
context:
space:
mode:
Diffstat (limited to 'docs/userguide')
-rw-r--r--docs/userguide/declarative_config.rst18
-rw-r--r--docs/userguide/extension.rst8
-rw-r--r--docs/userguide/quickstart.rst19
3 files changed, 25 insertions, 20 deletions
diff --git a/docs/userguide/declarative_config.rst b/docs/userguide/declarative_config.rst
index c50fcf6d..d1c25df1 100644
--- a/docs/userguide/declarative_config.rst
+++ b/docs/userguide/declarative_config.rst
@@ -63,13 +63,6 @@ boilerplate code in some cases.
src.subpackage1
src.subpackage2
- [options.data_files]
- /etc/my_package =
- site.d/00_default.conf
- host.d/00_default.conf
- data = data/img/logo.png, data/svg/icon.svg
- fonts = data/fonts/*.ttf, data/fonts/*.otf
-
Metadata and options are set in the config sections of the same name.
* Keys are the same as the keyword arguments one provides to the ``setup()``
@@ -206,10 +199,10 @@ Options
Key Type Minimum Version Notes
======================= =================================== =============== =========
zip_safe bool
-setup_requires list-semi
+setup_requires list-semi 36.7.0
install_requires list-semi
extras_require section [#opt-2]_
-python_requires str
+python_requires str 34.4.0
entry_points file:, section 51.0.0
scripts list-comma
eager_resources list-comma
@@ -221,8 +214,8 @@ package_dir dict
package_data section [#opt-1]_
exclude_package_data section
namespace_packages list-comma
-py_modules list-comma
-data_files dict 40.6.0
+py_modules list-comma 34.4.0
+data_files section 40.6.0 [#opt-4]_
======================= =================================== =============== =========
**Notes**:
@@ -250,6 +243,9 @@ data_files dict 40.6.0
The ``find_namespace:`` directive is supported since Python >=3.3.
+.. [#opt-4] ``data_files`` is deprecated and should be avoided.
+ Please check :doc:`/userguide/datafiles` for more information.
+
Compatibility with other tools
==============================
diff --git a/docs/userguide/extension.rst b/docs/userguide/extension.rst
index 93b59501..d74ca3fe 100644
--- a/docs/userguide/extension.rst
+++ b/docs/userguide/extension.rst
@@ -45,6 +45,14 @@ entry points in the active distributions on ``sys.path``. In fact, this is
how setuptools' own commands are installed: the setuptools project's setup
script defines entry points for them!
+.. note::
+ When creating commands, and specially when defining custom ways of building
+ compiled extensions (for example via ``build_ext``), consider
+ handling exceptions such as ``CompileError``, ``LinkError``, ``LibError``,
+ among others. These exceptions are available in the ``setuptools.errors``
+ module.
+
+
Adding ``setup()`` Arguments
----------------------------
diff --git a/docs/userguide/quickstart.rst b/docs/userguide/quickstart.rst
index bcb282ed..6bf353a0 100644
--- a/docs/userguide/quickstart.rst
+++ b/docs/userguide/quickstart.rst
@@ -186,17 +186,18 @@ For more details, see :doc:`datafiles`
Development mode
================
-``setuptools`` allows you to install a package without copying any files
-to your interpreter directory (e.g. the ``site-packages`` directory). This
-allows you to modify your source code and have the changes take effect without
-you having to rebuild and reinstall. This is currently incompatible with
-PEP 517 and therefore it requires a ``setup.py`` script with the following
-content::
- import setuptools
- setuptools.setup()
+.. tip::
+
+ Prior to :ref:`pip v21.1 <pip:v21-1>`, a ``setup.py`` script was
+ required to be compatible with development mode. With late
+ versions of pip, any project may be installed in this mode.
-Then::
+``setuptools`` allows you to install a package without copying any files
+to your interpreter directory (e.g. the ``site-packages`` directory).
+This allows you to modify your source code and have the changes take
+effect without you having to rebuild and reinstall.
+Here's how to do it::
pip install --editable .