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

No python files included in test package #173

Closed
neda-dtu opened this issue Jul 26, 2023 · 4 comments
Closed

No python files included in test package #173

neda-dtu opened this issue Jul 26, 2023 · 4 comments

Comments

@neda-dtu
Copy link

I created a small test package for experimenting with rattler-build using the directory structure we use on our internal projects. With this package conda mambabuild is able to create a working package, while rattler-build doesn't include the necessary python files. Below are the lists of files in the tar.bz files.

conda mambabuild

tar -tvf output/noarch/rattler_build_test-0.0.2-0.tar.bz2 
-rw-rw-r-- 0/0               2 2023-07-26 09:33 info/hash_input.json
-rw-rw-r-- 0/0              65 2023-07-26 09:33 info/test/run_test.py
-rw-rw-r-- 0/0              75 2023-07-26 09:33 info/link.json
-rw-rw-r-- 0/0             248 2023-07-26 09:33 info/index.json
-rw-rw-r-- 0/0             459 2023-07-26 09:33 info/recipe/conda_build_config.yaml
-rw-rw-r-- 0/0             515 2023-07-26 09:33 info/recipe/meta.yaml.template
-rw-rw-r-- 0/0             557 2023-07-26 09:33 info/files
-rw-rw-r-- 0/0             629 2023-07-26 09:27 info/recipe/recipe.yaml
-rw-rw-r-- 0/0            1690 2023-07-26 09:33 info/recipe/meta.yaml
-rw-rw-r-- 0/0            2322 2023-07-26 09:33 info/paths.json
-rw-rw-r-- 0/0            4677 2023-07-26 09:33 info/about.json
-rw-rw-r-- 0/0               0 2023-07-26 09:33 info/git
-rw-rw-r-- 0/0              19 2023-07-26 09:33 site-packages/rattler_build_test-0.0.2.dist-info/top_level.txt
-rw-rw-r-- 0/0               5 2023-07-26 09:33 site-packages/rattler_build_test-0.0.2.dist-info/INSTALLER
-rw-rw-r-- 0/0              92 2023-07-26 09:33 site-packages/rattler_build_test-0.0.2.dist-info/WHEEL
-rw-rw-r-- 0/0            1030 2023-07-26 09:33 site-packages/rattler_build_test-0.0.2.dist-info/RECORD
-rw-rw-r-- 0/0            1328 2023-07-26 09:33 site-packages/rattler_build_test-0.0.2.dist-info/METADATA
-rw-rw-r-- 0/0            1523 2023-07-26 09:33 site-packages/rattler_build_test-0.0.2.dist-info/LICENSE
-rw-rw-r-- 0/0               0 2023-07-26 09:33 site-packages/rattler_build_test-0.0.2.dist-info/REQUESTED
-rw-rw-r-- 0/0             122 2023-07-26 09:33 site-packages/rattler_build_test-0.0.2.dist-info/direct_url.json
-rw-rw-r-- 0/0              43 2023-07-26 09:33 site-packages/rattler_build_test/run.py
-rw-rw-r-- 0/0               0 2023-07-26 09:33 site-packages/rattler_build_test/__init__.py

rattler build

tar -tvf output/noarch/rattler_build_test-0.0.1-pyh4616a5c_0.tar.bz2 
-rw-rw-r-- 0/0             206 2023-07-26 09:34 info/about.json
-rw-rw-r-- 0/0             252 2023-07-26 09:34 info/index.json
-rw-rw-r-- 0/0            1523 2023-07-26 09:34 info/licenses/LICENSE
-rw-rw-r-- 0/0              75 2023-07-26 09:34 info/link.json
-rw-rw-r-- 0/0              39 2023-07-26 09:34 info/paths.json
-rw-rw-r-- 0/0              27 2023-07-26 09:34 info/test/run_test.py
@ruben-arts
Copy link
Contributor

Thanks for the info, really nice that you shared the test package! We'll take a look!

@wolfv
Copy link
Member

wolfv commented Oct 5, 2023

Hi @neda-dtu thanks for this test package! Very helpful. I've been looking at it and done some debugging.
One of the main problems is that you are using the build environment where you should be using the host environment.

conda-build is doing some workarounds to make it work, but it's better to switch to the new way of doing things. If you just exchange build to host it will start to work in rattler-build, too.

@wolfv
Copy link
Member

wolfv commented Oct 5, 2023

I can confirm that this works fine when changing build to host. I am going to close this issue for now. Thanks again!

@wolfv wolfv closed this as completed Oct 5, 2023
@neda-dtu
Copy link
Author

neda-dtu commented Oct 6, 2023

Thanks for the tip. I figured it was something wrong with my configuration. I will reread the documentation about the host and build sections to avoid this issue in the future.

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