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

Is there any support for conda modules? #14

Open
mtzeth opened this issue May 20, 2024 · 1 comment
Open

Is there any support for conda modules? #14

mtzeth opened this issue May 20, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mtzeth
Copy link

mtzeth commented May 20, 2024

I have a python project that I would like to create an sbom for. I currently have it set up using conda, but that means that some requirements (e.g. opencv), have a different name in my requirements file (e.g. opencv instead of opencv-python. This means that if I try to build the module, I can't pip install the resulting wheels as it tries to pip install the requirements and fails. What is the right way to use sbom4python for a conda project?

@anthonyharrison
Copy link
Owner

@mtzeth Thanks for the question.

I haven't tried sbom4python with a conda project. sbom4python uses pip to extract information about the modules but doesn't install any modules (it only works with installed modules in a system).

There isn't a version of sbom4python in conda. Feel free to propose a oull requqest to submit a version of sbom4python to conda-forge.

You could try pip install sbom4python --no-deps and pip install lib4sbom --no-deps

Try running sbom4python, it probably won't work, so you may have to install more packages depending on what options you are interested in.

Can you try the following on a conda system (what environment (Linux, Windows etc) and conda installation are you using?) and paste the output here?

Install sbom4python in a clean python virtual environment (assuming conda has this facility)
Run the following command sbom4python --module sbom4python --debug

Thanks

@anthonyharrison anthonyharrison added enhancement New feature or request help wanted Extra attention is needed labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants