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

boa build doesn't add any file into the final package #366

Open
Rocksen173 opened this issue Aug 23, 2023 · 4 comments
Open

boa build doesn't add any file into the final package #366

Rocksen173 opened this issue Aug 23, 2023 · 4 comments

Comments

@Rocksen173
Copy link

Hi community, I am using boa to build my local python pkg called widget. I am also using boa to build two other pkges jupyter_enterprise_gateway (JEG) and SparkMagic that I am applying patches from local. Everything is working fine for JEG and SparkMagic after building the RPM from the conda package. However the widget pkg I am building, there is some issue. I have checked building logs, and it looks like in the packaging stage, there is something wrong. For both JEG and SparkMagic, I can see log

Adding files for jupyter_enterprise_gateway

- site-packages/enterprise_gateway/__init__.py
- site-packages/enterprise_gateway/__main__.py
- site-packages/enterprise_gateway/_version.py
...


Adding files for sparkmagic

- site-packages/sparkmagic-0.20.0.dist-info/INSTALLER
- site-packages/sparkmagic-0.20.0.dist-info/METADATA
- site-packages/sparkmagic-0.20.0.dist-info/RECORD
...

I can see these info from conda pkg tarball /infos/files, and after mamba install, I can also see the packages get installed under conda env /boo/foo/lib/python3.9/site-packages.

ls /boo/foo/lib/python3.9/site-packages | grep spark
sparkmagic
sparkmagic-0.20.0.dist-info

ls /boo/foo/lib/python3.9/site-packages | grep jupyter_enterprise_gateway
jupyter_enterprise_gateway-2.6.0.dist-info

However, for this widget package, I am seeing

Adding files for widget

ATTENTION: No files added in target widget

In the tarball /infos/files, it's empty. In my conda env /boo/foo/lib/python3.9/site-packages, I don't see it either.

This widget pkg is a small tool I build locally. Previously when using conda against python 3.7, it's working fine. Now I am using boa, so the recipe got changed from meta.yaml to recipe.yaml. Also I am using python 3.9 as conda-index that is used for indexing local packages is only working for python 3.8 onwards. The recipe doesn't have any actual change other than syntax.

What could potentially be wrong so that this can happen?

Some information I can think of to provide context for any help:

python 3.9
boa 0.15.1

The script to build widget pkg in the recipe.yaml is

build:
  noarch: generic
  number: 0
  script: python -m pip install --use-pep517 --no-deps --ignore-installed . -vv
  string: py39_0

Please let me know if any other information is needed for some extra insight. Thanks!

@moqmar
Copy link
Contributor

moqmar commented Dec 22, 2023

I have the same issue, and for me it works with Python 3.10, but not with 3.11.

What I noticed is that there is a line set "SP_DIR=%PREFIX%\Lib\site-packages" in both outputs, but with Python 3.10 it ends up in "%PREFIX\Lib\python3.10\site-package". Is the SP_DIR wrong maybe?

I found a workaround though: add --prefix=%PREFIX% to the pip instruction.

@moqmar
Copy link
Contributor

moqmar commented Dec 22, 2023

Wait a moment, --prefix=%PREFIX% seems to work under Linux as well, even though it would have to be --prefix=$PREFIX there? I'm confused...

@ovo-Tim
Copy link

ovo-Tim commented Jan 22, 2024

I have met the same problem. Is that problem on boa?

@ovo-Tim
Copy link

ovo-Tim commented Jan 22, 2024

I think the problem isn't on boa.

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

No branches or pull requests

3 participants