Skip to content

build: add PEP 517-compliant pip install workflow#1

Open
gamesh411 wants to merge 3 commits intomasterfrom
pip-install-modernization
Open

build: add PEP 517-compliant pip install workflow#1
gamesh411 wants to merge 3 commits intomasterfrom
pip-install-modernization

Conversation

@gamesh411
Copy link
Copy Markdown
Owner

Rewrite setup.py to discover packages from source tree instead of requiring pre-built build_dist/ directory. Enables pip install . and pip install -e . as alternative to Makefile build.

Remove the ldlogger C Extension that was in the original setup.py. It used setuptools Extension to build a Python-importable .so, but the runtime needs a standalone LD_PRELOAD library and a logger binary — neither of which setuptools Extension produces. The Extension was non-functional: CodeChecker log never worked via pip install. Build logging requires make package (which builds ldlogger correctly) or an external compile_commands.json.

Makefile build, Thrift API packages, and frontend build unchanged.

@gamesh411 gamesh411 force-pushed the pip-install-modernization branch 11 times, most recently from cee03a7 to 36ec6a0 Compare April 23, 2026 19:11
Rewrite setup.py to discover packages from source tree instead of
requiring pre-built build_dist/ directory. Enables `pip install .`
and `pip install -e .` as alternative to Makefile build.

Remove the ldlogger C Extension that was in the original setup.py.
It used setuptools Extension to build an .so file, but the runtime
needs a logger binary as well (which the setuptools Extension did
not produce). Build logging on linux still requires `make package`
(which builds ldlogger correctly).

Makefile build, Thrift API packages, and frontend build unchanged.
@gamesh411 gamesh411 force-pushed the pip-install-modernization branch from 36ec6a0 to 8fc2a27 Compare April 23, 2026 19:29
Makefile build does this via extend_version_file.py but
rewritten setup.py missed it — rc builds would report
6.28.0 instead of 6.28.0-rc1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant