-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
0.29.0: install target uses hardcoded install directory for python modules #4830
Comments
Sorry. the tag is incorrect, it should be v0.29.0. could you sync with latest bcc repo and try again? |
I have exactly the same problem on Gentoo using v0.29.0; python stuff is installed into |
Could you help bisect which commit caused this issue? |
The problem is caused by #6813fbce ("Allow for installing python as a non-system package"). |
OK. One sec .. |
@hhoffstaette @kloczek Could you help investigate how we could fix the issue at the same time preserving the functionality as in 6813fbc If needed we can add a cmake option for that. thanks! |
Issue is that |
@kloczek https://github.com/iovisor/bcc/releases/tag/v0.29.0 there is a tarball with submodules included. |
I think that ideally you would stop calling one build system from another build system, but instead use one build system that knows how to handle both C/C++ and python. Using setuptools isn't even a long-term solution either way, because EDIT: for context, you can install a whole bunch more packages as well and then use those to install a setuptools-based wheel. However, this is a great deal of effort and additional dependencies for, ultimately, at the end of the day -- nothing other than "install the bcc/ directory to the correct site-packages". Even the setuptools-produced .egg-info / .dist-info metadata is effectively useless, since it's not the same as PyPI. |
The puzzling thing is that the existing construct
|
Using commas is incorrect CMake syntax. The Meson build system would require it, on the other hand. :P Interestingly, you can see what cmake is actually doing here if you set it as a CACHE variable. The variable name is Unfortunately, cmake as a stringly-typed programming language has no innate protection against this kind of issue. |
The spurious comma prevents the expression from working as intended. Fixes: iovisor@6813fbc Fixes: iovisor#4830 Signed-off-by: Holger Hoffstätte <[email protected]>
The spurious comma prevents the expression from working as intended. Fixes: 6813fbc Fixes: #4830 Signed-off-by: Holger Hoffstätte <[email protected]>
@hhoffstaette @eli-schwartz @kloczek @rtomayko Thanks for all of you trying to fix the problem! Just merged to the master branch. Do you think we need another release (e.g., v0.29.1) containing the fix? Or we can wait for another say two months for the next release (e.g., v0.30.0)? |
I would recommend making another release since build issues that prevent people from successfully installing the software tend to be a pretty thorny problem for affected users. Two months is a bit on the long side, for that. |
Sounds good. Will cut another minor release tomorrow. |
Bug: iovisor/bcc#4823 Bug: iovisor/bcc#4830 Reported-by: Holger Hoffstätte <[email protected]> Signed-off-by: Sam James <[email protected]>
Appreciate it, but please also add the python-3.12 fix in #4832 - thanks :) |
from
install
target output:Instead hardcoding base directory it should be used output of
or
The text was updated successfully, but these errors were encountered: