-
Notifications
You must be signed in to change notification settings - Fork 237
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
Building wheels for package in subdirectory of project #294
Comments
Why using |
But where could you use |
In before build. But I see problem with docker. I'm not sure if I good understand your problem. If you would like to use For such case in my project I build c/c++ libs before I call cibuildwheel (for linux it is done with dockerfile and configured custom manylinux image) If during build of library there is need to have access to proper python interpreter then I do not understand layout with hidden setup.py. |
Solution for Although I agree that building library before running |
Why? Dockerfile will be simple: FROM quay.io/pypa/manylinux2010_x86_64
WORKDIR /opt/imagecodecs/build_utils
COPY library .
RUN make
ENV some_path_set then task:
And set CIBW_MANYLINUX_X86_64_IMAGE: custom_manylinux |
Did we not also have EDIT: Found it hidden in the docs; see https://cibuildwheel.readthedocs.io/en/stable/faq/#linux-builds-on-docker |
Our solution was released in v1.4.0! |
Is there any way to build wheels for a package in a subdirectory of the project?
Example of this is when GitHub project contains some C++ code, while Python bindings are located in some subdirectory of that project, like
bindings/python
. Then it's also not possible to just set project directory to that subdirectory because theBEFORE_BUILD
script would expect the main C++ code to be normally present, while they won't be copied because they would be outside project directory.The text was updated successfully, but these errors were encountered: