-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
Issues with wheel dependencies with pex #314
Comments
well, the first step to getting pex to use wheel distributions sans a build step is to actually have prebuilt wheels available. afaict, at least for in most cases at Twitter, we use a separate process for building wheels vs resolving them. for you, this would look approximately like this:
which would produce a directory of wheels from pypi satisfying the transitive deps from your requirements.txt. then, once you have this you can point pex directly at this directory of pre-built wheels like so:
or you can also host wheels on an http server and point |
Thanks a lot for your help.
I finally now found the solution which is that you need to add the Thanks. Edit:
2.)
3.)
I don't know if I'm doing something wrong or if this is how this meant to be done, but it is working so that is definitely very good. :) |
yup, as suggested above renaming the wheels from the manylinux platform type to specifying the platform at build time will definitely get the manylinux wheels into the pex, but there's also a runtime component that determines which platform you're running on and then utilizes the correct set of wheels - this is the main part that isn't currently manylinux compatible. #281 is open for that. |
Thanks a lot, I'm very glad that I was able to find help here. |
I'm trying to create a pex package from my python package with the following dependencies:
When I just create a virtaualenv on my machine these dependencies install without issues and with using the wheel packages instead of compiling.
If I try to build the pex package I get compilation errors like this:
If I add the --no-build I get this error:
How can I make pex build the pex file without compiling anything, but using the wheel distributions.
I have tried most of the command line options in many different combinations like providing the platfom, etc. and did a lot of googling without any luck.
I think that the two packages that pex wants to compile are cffi and bcrypt.
Would be thankful to get some help here.
Thanks
The text was updated successfully, but these errors were encountered: