Skip to content

Commit

Permalink
complex package cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ucodery committed Apr 9, 2024
1 parent 4f93945 commit dc9d078
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions package-structure-code/complex-python-package-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ more information about front-end and back-end compatibility.
In this packaging guide we recommend using `hatch` along with it's preferred back-end `hatchling`. One reason to use
hatch with an alternate back-end is for creating an extension module. A Python extension module is one that is make up,
either in part or entirely, of compiled code. In this case the back-end chosen (such as `meson-python`) must know how to
compile the extension language and bind it to Python.
compile the extension language and bind it to Python but `hatchling` is only capable of building pure Python modules.

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

```diff
[build-system]
- requires = ["hatchling"]
+ requires = ["meson-python"]
- build-backend = "hatchling.build"
+ build-backend = "mesonpy"
[build-system]
-requires = ["hatchling"]
+requires = ["meson-python"]
-build-backend = "hatchling.build"
+build-backend = "mesonpy"
```
2 changes: 1 addition & 1 deletion package-structure-code/python-package-build-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ as building your documentation locally. This means that you could potentially dr
:widths: 20,5,50
:delim: "|"
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.
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.
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.
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).
Publish to PyPI and test PyPI|✅|Hatch supports publishing to both test PyPI and PyPI
Expand Down

0 comments on commit dc9d078

Please sign in to comment.