mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
Check if pyproject.toml exists before patching path deps
Local path dependencies may be setuptools projects.
This commit is contained in:
parent
29a3282aef
commit
c1b21de0ba
1 changed files with 4 additions and 0 deletions
|
@ -1,4 +1,8 @@
|
|||
remove-path-dependencies-hook() {
|
||||
if ! test -f pyproject.toml; then
|
||||
return
|
||||
fi
|
||||
|
||||
# Tell poetry not to resolve the path dependencies. Any version is fine!
|
||||
@yj@ -tj < pyproject.toml | @pythonInterpreter@ @pyprojectPatchScript@ > pyproject.json
|
||||
@yj@ -jt < pyproject.json > pyproject.toml
|
||||
|
|
Loading…
Add table
Reference in a new issue