Skbuild setuptools : put library in correct place

66 views Asked by At

I implemented python bindings for a C++ project. I want the extension module to be installable via pip. I managed to get a setupfile working, that compiles the module : https://gitlab.com/cytosim/cytosim/-/tree/pybind

So I can python3 setup.py sdist bdist_wheel and then pip3 install cytosim.xxxxx.whl without error. However, the module lands in /home/xxxx/anaconda3/module/lib instead of arriving in anaconda3/lib/python3.9/site-packages.

The relevant part of the setup.py file is :

setup(
    name="cytosim",
    version=version,
    packages=find_packages(where="module"),
    package_dir={"": "module"},
    cmake_install_dir="module",
    description=DOCLINES[0],
    long_description=open("README.md", encoding="utf8").read(),
    long_description_content_type="text/markdown",
    platforms=["Windows", "Linux", "Mac OS-X", "Unix"],
    keywords="simulation actin microtubule polymer",
    cmake_args=cmake_args,
    zip_safe=False,
)

How do I put the compiled extension module in site-packages ?

0

There are 0 answers