-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
maturin publish
fails with pyenv error
#485
Comments
I guess this is supposed to be run in the docker container? So with the docker container I can build wheels for 3.6, 3.7, 3.8, 3.9 on Linux And potentially I could build Apple wheels on my macbook, but then it'd be better if I just did And for other platforms the project has Is that roughly right? What's the ideal workflow here? |
Ok I basically just confirmed all of the above
|
I can see so we can pass |
|
so |
Not supported currently I think.
That's right. Cross compiling in Rust currently needs the target platform's linker and maybe also some C headers/libraries which is not included in |
On linux and mac, all python versions in
Most projects have releases where each platform is uploaded a slightly different time. The pypi developers are aware that this is suboptimal and are working on draft releases. In general, I recommend using one of the many CI service such as github actions to make releases across platforms.
|
You can run maturin build -i $(which python3) to limit to your Python in virtualenv. |
I think pyenv is sometimes counterintuitive, I'll thinking about how to make maturin works nicer with pyenv for example skipping unavailable Python interpreter installed by pyenv automatically. |
Please provide the following information:
python -V
): 3.9.2pip -V
): 20.2.2pyo3
,rust-cpython
orcffi
): pyo3cargo build
work? yes/
)?Please list the exact steps required to reproduce your error with all command output and if possible with a repository:
I installed maturin into my Python 3.9.2 virtualenv. I think this is what the readme suggests?
maturin develop
works fineBut when I try to run
maturin publish
I get:I'm already in my virtualenv with Python 3.9.2, where maturin is installed. Why is it looking for Python 3.8 via pyenv?
The text was updated successfully, but these errors were encountered: