Skip to content

Commit 4c1f743

Browse files
author
AhmedYasserrr
committed
fix: update pkg-config check and improve error message; bump version to 0.2.0 and enhance project metadata in pyproject.toml
1 parent 16bbf20 commit 4c1f743

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@ find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
1212
find_package(pybind11 CONFIG REQUIRED)
1313

1414
if(NOT WIN32)
15-
find_package(PkgConfig REQUIRED)
15+
find_program(PKG_CONFIG_EXECUTABLE pkg-config)
16+
if(NOT PKG_CONFIG_EXECUTABLE)
17+
message(
18+
FATAL_ERROR
19+
"\n*** Dependency missing: pkg-config not found. ***\n"
20+
"You need to install it before building.\n"
21+
"On Debian/Ubuntu: sudo apt install -y pkg-config libusb-1.0-0-dev libftdi1-dev\n"
22+
)
23+
endif()
24+
1625
pkg_check_modules(libusb REQUIRED libusb-1.0)
1726
pkg_check_modules(libftdi1 REQUIRED libftdi1)
1827
else()

pyproject.toml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,30 @@
22
requires = ["scikit-build-core>=0.10", "pybind11"]
33
build-backend = "scikit_build_core.build"
44

5-
65
[project]
76
name = "pyectool"
8-
version = "0.1.0"
9-
description="Python bindings for ectool using pybind11, enabling seamless integration with other applications"
7+
version = "0.2.0"
8+
description="Pyectool provides Python bindings for interacting with the Embedded Controller (EC) on ChromeOS and Framework devices, enabling seamless integration with other applications"
109
readme = "README.md"
1110
authors = [
1211
{ name = "Ahmed Gamea", email = "[email protected]" },
1312
]
13+
license = {file = "LICENSE"}
14+
keywords = ["ectool", "embedded controller", "EC", "pybind11", "bindings"]
15+
requires-python = ">=3.9"
16+
classifiers = [
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: C++",
19+
"License :: OSI Approved :: BSD License",
20+
"Operating System :: POSIX :: Linux",
21+
]
22+
23+
[project.urls]
24+
Homepage = "https://github.com/CCExtractor/libectool"
25+
Issues = "https://github.com/CCExtractor/libectool/issues"
1426

1527
[tool.scikit-build]
16-
minimum-version = "build-system.requires"
28+
minimum-version = "0.10"
1729

1830
[tool.cibuildwheel]
1931
build-frontend = "build[uv]"

0 commit comments

Comments
 (0)