blob: 74ba2a33d127eb918e8f24858f46a4a1d56d3516 [file] [log] [blame]
# Copyright 2022 The Pigweed Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
"""Install and remove optional packages for Pigweed experimental."""
import sys
from pw_package import package_manager
# These modules register themselves so must be imported despite appearing
# unused.
# pylint: disable=unused-import
from pw_package.packages import (
arduino_core,
boringssl,
chromium_verifier,
crlset,
freertos,
googletest,
mbedtls,
micro_ecc,
nanopb,
pico_sdk,
picotool,
protobuf,
smartfusion_mss,
stm32cube,
)
from pigweed_experimental_tools.packages import (
imgui,
glfw,
)
def initialize():
package_manager.register(nanopb.NanoPB)
def main(argv=None) -> int:
initialize()
return package_manager.run(**vars(package_manager.parse_args(argv)))
if __name__ == '__main__':
sys.exit(main())