-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
'rye build' with maturin produces the wheel using the bootstrap Python interpreter #1152
Comments
same on macos(arm) log❯ rye init --build-system maturin -p 3.8 rusty; cd rusty
success: Initialized project in /Users/***/git/python/test/qwe/rusty
Run `rye sync` to get started
❯ rye pin --relaxed 3.8
pinned 3.8 in /Users/***/git/python/test/qwe/rusty/.python-version
❯ rye sync
Initializing new virtualenv in /Users/***/git/python/test/qwe/rusty/.venv
Python version: [email protected]
Generating production lockfile: /Users/***/git/python/test/qwe/rusty/requirements.lock
Generating dev lockfile: /Users/***/git/python/test/qwe/rusty/requirements-dev.lock
Installing dependencies
Built file:///Users/***/git/python/test/qwe/rusty Built 1 editable in 3.97s
Installed 1 package in 1ms
+ rusty==0.1.0 (from file:///Users/***/git/python/test/qwe/rusty)
Done!
❯ rye build
building rusty
* Creating isolated environment: venv+uv...
* Using external uv from /Users/***/.rye/uv/0.1.44/uv
* Installing packages in isolated environment:
- maturin>=1.2,<2.0
* Getting build dependencies for sdist...
* Building sdist...
Running `maturin pep517 write-sdist --sdist-directory /Users/***/git/python/test/qwe/rusty/dist`
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
🐍 Found CPython 3.12 at /private/var/folders/27/xcyb5y7j5ql7sklfygs11m940000gn/T/build-env-3u6gfgo3/bin/python3
📡 Using build options features from pyproject.toml
📦 Built source distribution to /Users/***/git/python/test/qwe/rusty/dist/rusty-0.1.0.tar.gz
rusty-0.1.0.tar.gz
* Building wheel from sdist
* Creating isolated environment: venv+uv...
* Using external uv from /Users/***/.rye/uv/0.1.44/uv
* Installing packages in isolated environment:
- maturin>=1.2,<2.0
* Getting build dependencies for wheel...
* Building wheel...
Running `maturin pep517 build-wheel -i /Users/***/.rye/py/[email protected]/bin/python3.12 --compatibility off`
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
🐍 Found CPython 3.12 at /Users/***/.rye/py/[email protected]/bin/python3.12
📡 Using build options features from pyproject.toml
💻 Using `MACOSX_DEPLOYMENT_TARGET=11.0` for aarch64-apple-darwin by default
Compiling target-lexicon v0.12.14
Compiling autocfg v1.3.0
Compiling proc-macro2 v1.0.85
Compiling once_cell v1.19.0
Compiling unicode-ident v1.0.12
Compiling libc v0.2.155
Compiling syn v1.0.109
Compiling parking_lot_core v0.9.10
Compiling cfg-if v1.0.0
Compiling scopeguard v1.2.0
Compiling smallvec v1.13.2 ] 0/43: proc-macro2(build.rs), scopeguard, parking_lot_core(buil...
Compiling unindent v0.1.11 ] 1/43: proc-macro2(build.rs), scopeguard, parking_lot_core(buil...
Compiling indoc v1.0.9 ] 2/43: proc-macro2(build.rs), parking_lot_core(build.rs), syn(b...
Compiling lock_api v0.4.12 ] 7/43: indoc, proc-macro2(build), parking_lot_core(build), syn(...
Compiling memoffset v0.9.1 ] 8/43: indoc, proc-macro2(build), parking_lot_core(build), syn(...
Compiling quote v1.0.36 ] 17/43: syn(build), memoffset(build), libc(build), target-lexico...
Compiling pyo3-build-config v0.19.2 ] 24/43: memoffset(build), target-lexicon, syn, lock_api(build)
Compiling pyo3-macros-backend v0.19.2 ] 28/43: pyo3-build-config(build), syn, lock_api(build)
Compiling parking_lot v0.12.3 ] 29/43: pyo3-build-config(build), lock_api, syn, pyo3-macros-bac...
Compiling pyo3-ffi v0.19.2====> ] 33/43: pyo3-build-config, pyo3-macros-backend
Compiling pyo3 v0.19.2
Compiling pyo3-macros v0.19.2===> ] 36/43: pyo3-ffi(build), pyo3-macros-backend
Compiling rusty v0.1.0 (/private/var/folders/27/xcyb5y7j5ql7sklfygs11m940000gn/T/build-via-sdist-varl957f/rusty-0.1.0)
Finished `release` profile [optimized] target(s) in 6.16s
📦 Built wheel for CPython 3.12 to /private/var/folders/27/xcyb5y7j5ql7sklfygs11m940000gn/T/build-via-sdist-varl957f/rusty-0.1.0/target/wheels/rusty-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
/private/var/folders/27/xcyb5y7j5ql7sklfygs11m940000gn/T/build-via-sdist-varl957f/rusty-0.1.0/target/wheels/rusty-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Successfully built rusty-0.1.0.tar.gz and rusty-0.1.0-cp312-cp312-macosx_11_0_arm64.whl version❯ rye --version
rye 0.34.0
commit: 0.34.0 (d31340178 2024-05-20)
platform: macos (aarch64)
self-python: [email protected]
symlink support: true
uv enabled: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to Reproduce
rye init --build-system maturin -p 3.8 rusty; cd rusty
rye pin --relaxed 3.8
rye sync
rye build
Expected Result
The binary wheel should be for Python 3.8.
Actual Result
The binary wheel is for Python 3.12 (
rusty-0.1.0-cp312-cp312-linux_x86_64.whl
).Version Info
Stacktrace
No response
The text was updated successfully, but these errors were encountered: