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

Add pkgconfig support in the setup.py #120

Merged
merged 4 commits into from
Aug 1, 2023

Conversation

apurvakhatri
Copy link
Contributor

@apurvakhatri apurvakhatri commented Jul 16, 2023

Issue number of the reported bug or feature request: #54

Describe your changes
I have added support for pkgconfig in setup.py. Python's pkgconfig depends on system package pkg-config. The instructions on how to install pkg-config has also been added to README.md. The changes uses pkgconfig to look for clfags & ldflags to use for libelf and libdw. If pkgconfig is unable to determine the flags then the default pre-configured behavior is used.

Testing performed
Testing has been performed on Ubuntu 22.04.2 LTS

Additional context

Closes: #54

Copy link
Contributor

@godlygeek godlygeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see some stylistic issues that should be fixed by running make format, and a few other small issues as well:

README.md Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
@godlygeek
Copy link
Contributor

Ah, the Coverage workflow failed because

python3 -m pip install --upgrade pip cython
needs to install pkgconfig.

Added support for pkgconfig

Signed-off-by: Apurva Khatri <apurvakhatri2011@gmail.com>
Installing pkgconfig

Signed-off-by: Apurva Khatri <apurvakhatri2011@gmail.com>
Instructions for pkg-config added

Signed-off-by: Apurva Khatri <apurvakhatri2011@gmail.com>
@pablogsal pablogsal force-pushed the pkgconfig branch 2 times, most recently from 3a5806d to 0e33282 Compare August 1, 2023 11:29
@pablogsal pablogsal changed the title Pkgconfig Add pkgconfig support in the setup.py Aug 1, 2023
@pablogsal
Copy link
Member

I have rebased and manually applied @godlygeek suggestions to move this forward. Thanks a lot for the contribution @apurvakhatri 🚀

@pablogsal pablogsal dismissed godlygeek’s stale review August 1, 2023 11:44

Addressed feedback

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
@pablogsal pablogsal merged commit 55d2f73 into bloomberg:main Aug 1, 2023
24 checks passed
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.

Utilize pkgconfig to find elfutils
3 participants