How to build a python wheel with a specific set of dependencies?

60 views Asked by At

I am building a python wheel and encounter a problem by specifying the dependencies. The install_requires parameter of the setup method receives:

  • vtk_osmesa and
  • pyvista.

The problem above is, that pyvista has vtk as a dependency. However, since I would like to provide a wheel for a headless machine with osmesa, vtk_osmesa is already a dependency, with a different set of libraries.

Is there a way specify that a certain dependency should not be installed with all its sub dependencies? I would gladly specify all required dependencies using a tool like pip-compile.

0

There are 0 answers