Add gcc/g++ to PATH for building Python C++ extensions

This commit is contained in:
Celes Renata
2025-12-12 11:00:11 -08:00
parent 686b15c65c
commit d6601acfab
+4 -2
View File
@@ -54,9 +54,11 @@ let
echo "📦 Installing Python packages with proper library linking..." echo "📦 Installing Python packages with proper library linking..."
source "$VENV_PATH/bin/activate" source "$VENV_PATH/bin/activate"
# Add cmake and pkg-config to PATH for building Python packages # Add build tools to PATH for building Python packages
export PATH="${pkgs.cmake}/bin:${pkgs.pkg-config}/bin:$PATH" export PATH="${pkgs.cmake}/bin:${pkgs.pkg-config}/bin:${pkgs.gcc}/bin:$PATH"
export CMAKE_GENERATOR="Unix Makefiles" export CMAKE_GENERATOR="Unix Makefiles"
export CC="${pkgs.gcc}/bin/gcc"
export CXX="${pkgs.gcc}/bin/g++"
# Set wayland protocol path for pywayland # Set wayland protocol path for pywayland
export PKG_CONFIG_PATH="${pkgs.wayland}/lib/pkgconfig:${pkgs.wayland-protocols}/share/pkgconfig" export PKG_CONFIG_PATH="${pkgs.wayland}/lib/pkgconfig:${pkgs.wayland-protocols}/share/pkgconfig"