mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
exclude build python from poetry dependencies
While building PYTHONPATH includes pythonForBuild which can only be used during the build. Just tracking propagated inputs here should be enough.
This commit is contained in:
parent
a16e8aa760
commit
11d33aced2
2 changed files with 4 additions and 4 deletions
|
@ -640,8 +640,8 @@ self: super:
|
|||
# "Vendor" dependencies (for build-system support)
|
||||
postPatch = ''
|
||||
echo "import sys" >> poetry/__init__.py
|
||||
for path in ''${PYTHONPATH//:/ }; do echo $path; done | uniq | while read path; do
|
||||
echo "sys.path.insert(0, \"$path\")" >> poetry/__init__.py
|
||||
for path in $propagatedBuildInputs; do
|
||||
echo "sys.path.insert(0, \"$path\")" >> poetry/__init__.py
|
||||
done
|
||||
'';
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@ poetry2nix.mkPoetryApplication {
|
|||
# "Vendor" dependencies (for build-system support)
|
||||
postPatch = ''
|
||||
echo "import sys" >> poetry/__init__.py
|
||||
for path in ''${PYTHONPATH//:/ }; do echo $path; done | uniq | while read path; do
|
||||
echo "sys.path.insert(0, \"$path\")" >> poetry/__init__.py
|
||||
for path in $propagatedBuildInputs; do
|
||||
echo "sys.path.insert(0, \"$path\")" >> poetry/__init__.py
|
||||
done
|
||||
'';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue