Packaging/Python: Difference between revisions
imported>Milahu add setup.py |
imported>Milahu cleanup No module named 'pkg_resources' |
||
Line 50: | Line 50: | ||
== Caveats == | == Caveats == | ||
=== ModuleNotFoundError: No module named 'pkg_resources' === | === ModuleNotFoundError: No module named 'pkg_resources' === | ||
If you see | |||
If you see this runtime error | |||
<pre> | <pre> | ||
ModuleNotFoundError: No module named 'pkg_resources' | ModuleNotFoundError: No module named 'pkg_resources' | ||
</pre> | </pre> | ||
add | |||
add <code>setuptools</code> to your derivation | |||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
... | buildPythonPackage { | ||
# ... | |||
propagatedBuildInputs = [ | propagatedBuildInputs = [ | ||
... | # ... | ||
setuptools | setuptools | ||
]; | ]; | ||
} | } | ||
</syntaxHighlight> | </syntaxHighlight> | ||
Please report such issues at https://github.com/NixOS/nixpkgs/issues | |||
== setup.py == | == setup.py == |