-
Notifications
You must be signed in to change notification settings - Fork 24
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
cibuildwheel
manylinux build issue
#103
Comments
Hi @TNonet, thanks! The latest stable should fix the issue. Please let me know if it solves the issue, I'll create a patch release if it resolved. |
Hi @RUrlus, I am looking at it now! Thanks for such a fast response/resolve. |
Hi @RUrlus, That worked, thanks! I am now getting an undefined issue symbol issue on AppVeyor. I don't believe this issue is related to the original issue, but I would love some assistance. Before using
However, now I am just including
Do you have any suggestions on how to fix this? It does successfully build and link on my MacOS builds. |
Hi @TNonet, carma links to the header only target of armadillo if none is provided. Hence, you need to link to BLAS/LAPACK yourself or use the CMake from Armadillo that is configured to link to BLAS/LAPACK. If you haven't found it yet, I can highly recommend scikit-build. I've used it for other python packages with Pybind11 extensions, e.g. https://github.com/RUrlus/diptest |
Thanks for the direction! I will look into it! |
Hi @RUrlus, I have been looking into If you are willing to continue to help, I am running into two issues. I don't want to overstay my welcome, but I would be happy to help write up some beginner documentation or have two of my packages that hopefully will use First, when I build locally using
I am wondering if the last operation of my CMakeList file (which is borrowed heavily from
Second, I get the following issue after compiling when I build on GH actions using
I am relatively new to This code can be found on the |
Hi @TNonet, sure happy to help and having a package from you as an example would be great. One thing that's not entirely clear to me is if you want to install Armadillo in the python package or not? If you're statically linking you could set the Regarding the extension installation:You're missing if(SKBUILD)
INSTALL(TARGETS l0learn_core LIBRARY DESTINATION "${PROJECT_NAME}/lib") relies on the python package name and the CMake project name being the same. General tip, carma requires finding the python headers, which doesn't always work perfectly. Setting:
as a cmake_args in the setup.py helps those cases |
Hi @RUrlus, Thank you for such a fast response. I will be looking at this today and tomorrow! Updated with Comments: First, to simplify the initial stages, I will assume armadillo is installed ('brew install armadillo`, or similar"). I will hopefully relax this constraint later. I adjusted my CMakeList file to account for this by removing my
I was able to get around this issue by adding Secondly, I have moved my package from Thirdly, I included the Finally, I believe I followed your extension installation steps, but I am still getting a permissions issue installing.
I will be looking into this issue (and I have updated the code on the 'use-carma' branch if you are interested. |
Hi @RUrlus, I decided to take a step back and work on a more straightforward project. Therefore, I created an example project by merging your example https://github.com/RUrlus/carma/tree/stable/examples and pybind's https://github.com/pybind/scikit_build_example. This resulted in https://github.com/TNonet/carma-py-example. An issue/inconsistency I have observed is that However, it does find it when I include it from a subdirectory. See this GH action build (https://github.com/TNonet/carma-py-example/actions/runs/2367478858). The commit diff between these two builds is found: TNonet/carma-py-example@4b7d7f4. Is it possible I am doing something incorrectly concerning carma finding Python3? I know there are other issues with this example project at the moment, but I am working on sorting them out as I learn more! Thanks! |
Hi @TNonet, shit sorry. I just realised I forgot to change the finding of Python in the cmake targets when it is installed. |
Hi @RUrlus, No worries. Thanks for being so helpful and responsive! |
Hi @RUrlus, I wanted to follow up on my offer for example packages:
Over the next few months, the following packages should be released/updated to use
I can follow up when they are officially released/updated. |
Hi,
I am a big fan of carma!
I am transitioning some of my cython bindings that based off https://github.com/andrewcron/cy_armadillo to carma/pybind11 bindings. However, I can't seem to get it to build on AppVeyor using
cibuildwheel
.It seems that
carma
's CMakeList is somewhat incompatible withmanylinux
which does not have python development libraries installed.This is resulting in the following errors.
Do you have any advice on how I could work around this? I would also be happy to help with a patch/PR.
The text was updated successfully, but these errors were encountered: