Skip to content

Commit dc9d078

Browse files
committed
complex package cleanup
1 parent 4f93945 commit dc9d078

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package-structure-code/complex-python-package-builds.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ more information about front-end and back-end compatibility.
2929
In this packaging guide we recommend using `hatch` along with it's preferred back-end `hatchling`. One reason to use
3030
hatch with an alternate back-end is for creating an extension module. A Python extension module is one that is make up,
3131
either in part or entirely, of compiled code. In this case the back-end chosen (such as `meson-python`) must know how to
32-
compile the extension language and bind it to Python.
32+
compile the extension language and bind it to Python but `hatchling` is only capable of building pure Python modules.
3333

3434
In order to use a different back-end you will need to edit your project's `pyproject.toml`. If you have a
3535
`pyproject.toml` generated by the `hatch` command, or from following the packaging tutorial, you may have
3636
to make a change like this
3737

3838
```diff
39-
[build-system]
40-
- requires = ["hatchling"]
41-
+ requires = ["meson-python"]
42-
- build-backend = "hatchling.build"
43-
+ build-backend = "mesonpy"
39+
[build-system]
40+
-requires = ["hatchling"]
41+
+requires = ["meson-python"]
42+
-build-backend = "hatchling.build"
43+
+build-backend = "mesonpy"
4444
```

package-structure-code/python-package-build-tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ as building your documentation locally. This means that you could potentially dr
344344
:widths: 20,5,50
345345
:delim: "|"
346346
347-
Use Other Build Backends|✅ | Hatch is used with the back-end Hatchling by default, but allows you to use another back-end by switching the declaration in pyproject.toml.
347+
Use Other Build Backends|✅ | Hatch is used with the back-end Hatchling by default, but allows you to use another back-end by switching the declaration in pyproject.toml.
348348
Dependency management|✖| Currently you have to add dependencies manually with Hatch. However a feature to support dependencies management may be added in a future release.
349349
Environment Management |✅ | Hatch supports Python virtual environments. If you wish to use other types of environments such as Conda, you will need to [install a plugin such as hatch-conda for conda support](https://github.com/OldGrumpyViking/hatch-conda).
350350
Publish to PyPI and test PyPI|✅|Hatch supports publishing to both test PyPI and PyPI

0 commit comments

Comments
 (0)