-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
cryptography 36.0.1 won't install on Cygwin #6834
Comments
The error it's failing on is:
I don't know anything about cygwin, so I'm not sure what the expected path to the python binary is. It's possible this is a bug in pyo3, or it's possible that somehow the python installation is messed up. |
Hi @alex, That is the real path to my Python:
Here's a command inspecting the Cygwin packaging system for what it "shipped" in it's packaging:
I am sure there's nothing wrong with Cygwin's Python. I've been using it for a long time with a wide range of PyPi packages. I've built (older) cryptography on Cygwin more than a few times. Is the tooling is trying to outsmart Cygwin by not using UNIX pathing? e.g. Programs detect that they are on Cygwin and try to use Windows pathing (Cygwin supports this) and not UNIX pathing. Or the file Python is expecting isn't really there? How about any ENV knobs that I can control to force things? The error makes me think it's one of those two things, because
I don't run Python this way, I use Is there a debug for your build process so I can see the shell/make commands being issued? |
The site of the error is here: https://github.com/PyO3/pyo3/blob/main/pyo3-build-config/src/impl_.rs#L1140-L1160 This looks like a pretty standard subprocess invocation and we know the value of |
I don't know what language that is, but the lines at L1156-L1160 don't include the value of ...and I see your point now. That error isn't from Cygwin's Python b/c that type of error would look like this:
It's a language host error that it couldn't find Can I set the Python binary myself via an ENV knob? I can try to trick it with a Windows version of the Cygwin Python:
But I need your build process to build a Cygwin version, not a Win32 version. Has the build system changed since the 3.3.2 days? |
Yes, in 3.4 we introduced Rust into our build process. It's entirely possible that the issue is that some part of the pyo3 build process is not cygwin aware. I really know nothing about cygwin. |
Ah, Ok. Here it is: PyO3/pyo3#1082. Rust has no Cygwin target. Bummer. |
pip install cryptography
on Cygwin doesn't install. The last version I've been able to install/build on Cygwin iscryptography 3.3.2
.I'm reporting this now because a PyPi package I do want to install has a dependency requirement of
cryptography>=35.0
:The text was updated successfully, but these errors were encountered: