Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove non-core Python build requirements #11

Merged
merged 2 commits into from
Aug 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ parts:
override-build: |
# Setup ZAP paths; installed in the corresponding part
test -f $ZAP_ENV && source $ZAP_ENV

mkdir -p $CRAFT_PART_INSTALL/bin

cd ../../connectedhomeip/src
Expand All @@ -90,10 +91,13 @@ parts:
# Replace key-value store path:
sed -i 's/\/tmp/\/mnt/g' src/platform/Linux/CHIPPlatformConfig.h

# to avoid activation errors, don't treat unset variables as error
# To avoid activation errors, don't treat unset variables as error
set +u

# build the chip tool
# Skip all non-core Python requirements:
sed -i '/^-r requirements/ s/./#&/' ./scripts/setup/requirements.txt

# Build the chip tool
./scripts/examples/gn_build_example.sh examples/chip-tool ./build-examples

cp build-examples/chip-tool $CRAFT_PART_INSTALL/bin/
Expand Down