Packaging/Python: Difference between revisions
Tomodachi94 (talk | contribs) m missed one ryantm link |
m `nix shell` has no `-p` argument. This is probably meant to be `nix-shell`. |
||
| Line 168: | Line 168: | ||
you have to add one of these files. | you have to add one of these files. | ||
'''Note:''' sometimes you will be able to find <code>pyproject.toml</code> in the source for a package despite it not being present in a <code>.whl</code> file. You can inspect the contents of a <code>.whl</code> file by downloading it from PyPi and then extracting it with <code>nix shell -p python311Packages.wheel --command wheel unpack path/to/package.whl</code>. | '''Note:''' sometimes you will be able to find <code>pyproject.toml</code> in the source for a package despite it not being present in a <code>.whl</code> file. You can inspect the contents of a <code>.whl</code> file by downloading it from PyPi and then extracting it with <code>nix-shell -p python311Packages.wheel --command wheel unpack path/to/package.whl</code>. | ||
For example, you can create the <code>setup.py</code> in the <code>preBuild</code> phase. | For example, you can create the <code>setup.py</code> in the <code>preBuild</code> phase. | ||