conda-forge / qpot-feedstock

A conda-smithy repository for qpot.
BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

Reducing dependencies, building with xtensor-python #31

Closed tdegeus closed 3 years ago

tdegeus commented 3 years ago

Checklist

conda-forge-linter commented 3 years ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

tdegeus commented 3 years ago

@conda-forge-admin, please rerender

henryiii commented 3 years ago

To use Scikit-build, you need to map the PYTHON_x variables to Python_x in your CMakeLists. I know I've either done this or seen this done somewhere, but have forgotten where. Hopefully we will fix it soon, it's on the roadmap.

henryiii commented 3 years ago

(I was going to do it here, but it would be better to try https://github.com/scikit-build/scikit-build/issues/554.)

tdegeus commented 3 years ago

Thanks @henryiii , I will try. The other horse I was betting on was to use FindPythonLibs through pybind11's CMake support and to rely on the FindNumPy you provided in scikit-build. But somehow I'm still doing something wrong I think, because the library is ultimately not installed https://github.com/tdegeus/QPot/pull/36/files

tdegeus commented 3 years ago

@conda-forge-admin, please rerender

tdegeus commented 3 years ago

@conda-forge-admin, please rerender

github-actions[bot] commented 3 years ago

Hi! This is the friendly automated conda-forge-webservice. I tried to rerender for you, but it looks like there was nothing to do.

tdegeus commented 3 years ago

@henryiii I think I'm nearly there... I'm able to use scikit-build locally : https://github.com/tdegeus/QPot/pull/36 (I will put some more comments there), however, I get hopeless failures here on conda-build. In particular, I get the error:

CMake-installed files must be within the project root.
       Project Root  : /tmp/pip-req-build-3s1kxo05/_skbuild/linux-x86_64-3.6/cmake-install
       Violating File: /home/conda/feedstock_root/build_artifacts/qpot-split_1629792833267/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/./_QPot.cpython-36m-x86_64-linux-gnu.so

Do you know what to do about this ?

Note that in the example you linked, I found

if(APPLE)
    set_target_properties(${PYPROJECT_NAME} PROPERTIES INSTALL_RPATH "@loader_path/${CMAKE_INSTALL_LIBDIR}")
else()
    set_target_properties(${PYPROJECT_NAME} PROPERTIES INSTALL_RPATH "$ORIGIN/${CMAKE_INSTALL_LIBDIR}")
endif()

I tried both with and without, with exactly the same error message.

Also not that I followed the manual and the example such that

install(TARGETS ${PYPROJECT_NAME} DESTINATION .)

but that might not be what is actually needed?

tdegeus commented 3 years ago

Found it @henryiii , see https://github.com/scikit-build/scikit-build/issues/588

tdegeus commented 3 years ago

@conda-forge-admin, please rerender

github-actions[bot] commented 3 years ago

Hi! This is the friendly automated conda-forge-webservice. I tried to rerender for you, but it looks like there was nothing to do.

tdegeus commented 3 years ago

@conda-forge-admin, please rerender

github-actions[bot] commented 3 years ago

Hi! This is the friendly automated conda-forge-webservice. I tried to rerender for you, but it looks like there was nothing to do.

tdegeus commented 3 years ago

@conda-forge-admin, please rerender

tdegeus commented 3 years ago

@conda-forge-admin, please rerender

tdegeus commented 3 years ago

@conda-forge-admin, please rerender

tdegeus commented 3 years ago

Fixed by https://github.com/conda-forge/qpot-feedstock/pull/33