Skip to content

Commit afbef87

Browse files
committed
wip: chore/python wheels
1 parent dbb7cef commit afbef87

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/python.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ jobs:
2020
- os: macos-latest
2121
target: aarch64-unknown-linux-gnu
2222

23-
defaults:
24-
run:
25-
working-directory: ./pyroscope_ffi/python
26-
2723
env:
28-
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y && yum install -y openssl-devel"
24+
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y && apt update && apt install -y libssl-dev libunwind8-dev"
25+
CIBW_BUILD_VERBOSITY: "1"
2926
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
27+
CIBW_MANYLINUX_X86_64_IMAGE: "quay.io/pypa/manylinux_2_24_x86_64:latest"
3028

3129
steps:
3230
- uses: actions/checkout@v2
@@ -37,7 +35,7 @@ jobs:
3735
run: python -m pip install cibuildwheel==2.4.0
3836

3937
- name: Build wheels
40-
run: python -m cibuildwheel --output-dir wheelhouse
38+
run: python pyroscope_ffi/python -m cibuildwheel --output-dir wheelhouse
4139

4240
- uses: actions/upload-artifact@v2
4341
with:

pyroscope_ffi/python/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ clean:
33
rm -rf build
44
rm -rf dist
55
rm -rf wheelhouse
6+
rm -rf pyroscope_beta.egg-info
67

78
.PHONY: build
89
build: clean

pyroscope_ffi/python/lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["Abid Omar <[email protected]>"]
55
edition = "2021"
66

77
[lib]
8-
crate-type = ["cdylib", "staticlib"]
8+
crate-type = ["cdylib"]
99

1010
[dependencies]
1111
pyroscope = { path = "../../../" }

0 commit comments

Comments
 (0)