forked from Shinonome/alt-illogical-impulse
Add gcc/g++ to PATH for building Python C++ extensions
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user