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

build: build deltachat-rpc-server wheels with nix #5333

Merged
merged 1 commit into from
Mar 10, 2024
Merged

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Mar 10, 2024

This makes nix build .#deltachat-rpc-server-x86_64-linux-wheel and similar commands build Python wheels in a nix environment, hopefully making wheels reproducible like the binaries already are. Flake wheel output depends on binary output, so with proper caching there is no need to build the binary second time if it was already built previously.

We will not be able to build wheels for macOS until #5326 is ready, but we can build them outside of nix for now.

For example:

$ nix build .#deltachat-rpc-server-x86_64-linux-wheel
$ zipinfo result/deltachat_rpc_server-1.136.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl 
Archive:  result/deltachat_rpc_server-1.136.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
Zip file size: 9134569 bytes, number of entries: 8
-rw-r--r--  2.0 unx    16914 b- defN 80-Jan-01 00:00 deltachat_rpc_server/LICENSE
-rw-r--r--  2.0 unx     1331 b- defN 80-Jan-01 00:00 deltachat_rpc_server/README.md
-rw-rw-r--  2.0 unx      147 b- defN 80-Jan-01 00:00 deltachat_rpc_server/__init__.py
-rwxr-xr-x  2.0 unx 21231152 b- defN 80-Jan-01 00:00 deltachat_rpc_server/deltachat-rpc-server
-rw-rw-r--  2.0 unx      102 b- defN 80-Jan-01 00:00 deltachat_rpc_server-1.136.3.dist-info/METADATA
-rw-rw-r--  2.0 unx       52 b- defN 80-Jan-01 00:00 deltachat_rpc_server-1.136.3.dist-info/WHEEL
-rw-rw-r--  2.0 unx       66 b- defN 80-Jan-01 00:00 deltachat_rpc_server-1.136.3.dist-info/entry_points.txt
-rw-rw-r--  2.0 unx      723 b- defN 80-Jan-01 00:00 deltachat_rpc_server-1.136.3.dist-info/RECORD
8 files, 21250487 bytes uncompressed, 9133295 bytes compressed:  57.0%

@link2xt link2xt mentioned this pull request Mar 10, 2024
11 tasks
@link2xt link2xt force-pushed the link2xt/nix-wheels branch 4 times, most recently from 340b03e to 05b0c41 Compare March 10, 2024 18:19
@link2xt link2xt force-pushed the link2xt/nix-wheels branch from 05b0c41 to 0eaa440 Compare March 10, 2024 18:57
@link2xt link2xt marked this pull request as ready for review March 10, 2024 19:10
@link2xt link2xt merged commit 9f4af67 into main Mar 10, 2024
48 checks passed
@link2xt link2xt deleted the link2xt/nix-wheels branch March 10, 2024 20:22
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

Successfully merging this pull request may close these issues.

1 participant