mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 03:10:19 +00:00
python3Packages.mlx-bin: symlink mlx-metal include and share directories
This commit is contained in:
@@ -53,10 +53,10 @@ buildPythonPackage (finalAttrs: {
|
||||
[ mlx-metal ];
|
||||
|
||||
postInstall = ''
|
||||
# The Python wheel expects libmlx.dylib and mlx.metallib to live under
|
||||
# mlx/lib next to the extension module, but those files are shipped by the
|
||||
# separate mlx-metal wheel.
|
||||
# Nix installs the wheels separately, but MLX expects their files in the same package directory.
|
||||
ln -s ${mlx-metal}/${python.sitePackages}/mlx/lib $out/${python.sitePackages}/mlx/lib
|
||||
ln -s ${mlx-metal}/${python.sitePackages}/mlx/include $out/${python.sitePackages}/mlx/include
|
||||
ln -s ${mlx-metal}/${python.sitePackages}/mlx/share $out/${python.sitePackages}/mlx/share
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "mlx" ];
|
||||
|
||||
Reference in New Issue
Block a user