forked from 0xWheatyz/SPARC
build: add numpy and native library dependencies
Add numpy to requirements.txt and configure flake.nix with zlib and stdenv.cc.cc.lib to support C extension packages. Sets LD_LIBRARY_PATH for proper runtime linking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -20,6 +20,14 @@
|
|||||||
packages = [
|
packages = [
|
||||||
python
|
python
|
||||||
pkgs.python311Packages.virtualenv # gives `virtualenv` tool
|
pkgs.python311Packages.virtualenv # gives `virtualenv` tool
|
||||||
|
pkgs.zlib
|
||||||
|
pkgs.stdenv.cc.cc.lib
|
||||||
|
];
|
||||||
|
|
||||||
|
# Required for numpy and other C extension packages
|
||||||
|
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
|
||||||
|
pkgs.zlib
|
||||||
|
pkgs.stdenv.cc.cc.lib
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
|||||||
@@ -11,4 +11,5 @@ uvicorn[standard]
|
|||||||
httpx
|
httpx
|
||||||
streamlit
|
streamlit
|
||||||
plotly
|
plotly
|
||||||
|
numpy
|
||||||
pandas
|
pandas
|
||||||
|
|||||||
Reference in New Issue
Block a user