Link to individual dependency files in Bookwyrm package
This enables dependencies with overlapping directory structures to be merged correctly.
This commit is contained in:
parent
9d390b99d1
commit
555a908e43
1 changed files with 10 additions and 4 deletions
|
@ -26,7 +26,7 @@ mkDerivation {
|
||||||
dontBuild = true ;
|
dontBuild = true ;
|
||||||
|
|
||||||
installPhase = let
|
installPhase = let
|
||||||
dependencies = [
|
pythonDependencies = [
|
||||||
aiohappyeyeballs
|
aiohappyeyeballs
|
||||||
aiohttp
|
aiohttp
|
||||||
aiosignal
|
aiosignal
|
||||||
|
@ -98,9 +98,15 @@ mkDerivation {
|
||||||
|
|
||||||
# Python dependencies
|
# Python dependencies
|
||||||
|
|
||||||
dependencies="${ concatStringsSep " " dependencies }"
|
pythonDependencies="${ concatStringsSep " " pythonDependencies }"
|
||||||
for target in $dependencies ; do
|
for package in $pythonDependencies ; do
|
||||||
ln -sf $target/lib/python3.11/site-packages/* $out/lib/python3.11/site-packages/
|
for directory in $( sh -c "cd $package/lib/python3.11/site-packages ; find -type d -not -name __pycache__" ) ; do
|
||||||
|
mkdir $out/lib/python3.11/site-packages/$directory
|
||||||
|
done
|
||||||
|
|
||||||
|
for file in $( sh -c "cd $package/lib/python3.11/site-packages ; find -type f" ) ; do
|
||||||
|
ln -s $package/lib/python3.11/site-packages/$file $out/lib/python3.11/site-packages/$file
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
# Python packages
|
# Python packages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue