Hi All,

I am writing to you to not get lost in
https://github.com/cython/cython/pull/6531. I would like to get an
agreement on how we would like to proceed with a CLI. The PR has two parts:

1. Utility for generating C file of shared utility.

Here, I propose to pass the full path to the file e.g.:

cython_shared_module scipy/_lib/cyshared.c

The reason why not to use the import path is because the target package can
be hidden inside a directory (e.g. src). This does not work well with the
import path. Additional questions:
* what we will call the utility for creation of the module?
* should it be executable or we will use python -m '...' approach?
* should utility create directories or to fail if directory does not exist?

2. cython parameter to instruct cython to compile module with shared utility

Here, I propose to use import path and compilation directive:

cython -X use_shared_utility=scipy._lib.cyshared my_module.pyx

The reason to use the import path is because the file must be internally
imported in any case. The import path is a full path including the shared
module.

Could you help me answer the mentioned questions? I think this is last
piece of puzzle and after the PR should be finally complete (there are
still PR review needed and rough edges to be polished).


Thanks,


Matus
_______________________________________________
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel

Reply via email to