This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new b7003e55b9 Revert "kconfiglib/mark: It should use pip instead of apt 
install"
b7003e55b9 is described below

commit b7003e55b9605f204fd2ed10fe1ee8beb93e4b0f
Author: chao an <[email protected]>
AuthorDate: Mon Jan 13 21:19:55 2025 +0800

    Revert "kconfiglib/mark: It should use pip instead of apt install"
    
    pip source is deprecated from ubuntu 24.04
    
    This reverts commit 7c7a64c84c3fe1db492ff84c727e15dd4f82f147.
    
    Signed-off-by: chao an <[email protected]>
---
 CMakeLists.txt | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2208de5c4b..ae45cdb2ea 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -85,9 +85,16 @@ endif()
 
 find_program(KCONFIGLIB olddefconfig)
 if(NOT KCONFIGLIB)
+  # cmake-format: off
   message(
     FATAL_ERROR "Kconfig environment depends on kconfiglib, Please install:
-  $ sudo pip3 install kconfiglib")
+  (APT source)
+    $ sudo apt install python3-kconfiglib
+  or (pip source)
+    $ pip install kconfiglib
+  or (After Ubuntu 24.04)
+    $ pip install kconfiglib --break-system-packages")
+  # cmake-format: on
 endif()
 
 # BOARD CONFIG can be set to directory path, or <board-name>[/:]<config-name>

Reply via email to