You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You could use pip to install all of these tools if you are a pip user!
20
+
NOTE: You can use pip to install all of these tools if you are a pip user!
21
21
22
-
ToO build with `build` you need to install meson python
23
-
`pip install meson-python`
22
+
NOTE: PEP 517?? doesn't specify whether the front end of the back end need to be aware of the dist/ directory where your build outputs will bestored. As such there is a bug using meson-python and PDM.
23
+
PDM by default cleans / deletes any dist/ directory and tries to place your
24
+
SDist and wheel files in that directory.
24
25
25
-
NOTE: currently there is a bug between meson-python and pdm.
26
-
PDm by default cleans / deletes any dist/ directory and tries to place your
27
-
SDist and wheel files in that directoy.
28
-
29
-
Meson Python by default does not create that directory for you.
26
+
`Meson-Python` by default does not create that directory for you.
30
27
31
28
An easy work around for this is:
32
29
@@ -41,22 +38,21 @@ $ pdm build --no-clean
41
38
To build with meson run:
42
39
`python -m build`
43
40
44
-
## Build and install package
45
-
This creates a build using meson - to run this you need to have ninja
46
-
installed in your envt.
47
-
`pip install --no-build-isolation .`
41
+
## Build and install package in editable mode
48
42
49
-
`pdm build` doesn't work currently
43
+
You can also install/build using pip. This creates a build using meson.
44
+
45
+
`pip install --no-build-isolation .`
50
46
51
47
48
+
Install the package from the whl.
52
49
```bash
53
50
python -m pip install --no-deps dist/*.whl
54
51
```
55
52
56
-
57
53
## Environments
58
54
59
-
Pdm has several options for managing environments.
55
+
PDM has several options for managing environments.
60
56
One is following pep xxx it will create a __pypackgages__ directory. it will
61
57
assume that the packages needed to build and install your package are in that
62
58
local directory. However, you can also set the environment that you wish to
0 commit comments