iovisor / iovisor/bcc

`make install` not support `setuptools>58.2.0`

Open
#4,586 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

I found that when I install bcc on fedora37 (make install), setuptools gives a warnings:

```bash
running install
/usr/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3.11/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
```

And found that the BCC Python related code has not been installed or updated. This is caused by a high version of setuptools, One of the workarounds [0][1]:

```
pip install setuptools==58.2.0
```

But this is clearly the wrong solution. I haven't found a workable solution at the moment

[0] https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
[1] https://pypa-build.readthedocs.io/en/stable/

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing `make install` on Fedora 37 with a setuptools version newer than 58.2.0, then inspect how the Makefile installs the BCC Python-related code. Done means the Python components are installed or updated successfully without requiring a setuptools version pin.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.