Skip to content

CythonRecipe: how to handle different settings for different .pyx files? #511

@JonAnCla

Description

@JonAnCla

Hey there, I have an issue that I'm not sure how to make progress on...

The CythonRecipe framework in the revamp framework seems to use the same settings (includes, libs, etc) for every .pyx file in a recipe.

Unless I'm missing something (quite possible!) this is a problem for a custom library I've built because:

  1. the library has some .pyx files that use c and others that use c++, and I can't give instructions on which files to compile using c++ settings (c is assumed for all by the CythonRecipe)
  2. the library has a couple of .pyx files that import different external libs, and I can't specify which .pyx file imports which lib

When using the old toolchain issues 1 and 2 were delegated to the setup.py file I wrote for my library, but with the revamp my setup.py is not actually used to cythonise the .pyx, hence 1 and 2 cause problems.

Am I missing something, or any ideas on how to make progress? Can I somehow use my setup.py to cythonise my .pyx files, instead of relying on the CythonRecipe?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions