setuptools-rust icon indicating copy to clipboard operation
setuptools-rust copied to clipboard

Script=True only support Snake Case script

Open williamstar opened this issue 5 years ago • 4 comments

Most of binary executable filename is Kebab Case, but currently is not support in setuptools-rust.

It seems that script name is shared with python module name from the codebase and python module name is not support Kebab Case.

For example, the origin rust_extension is persia-embedding-parameter-server will rename to persia_embedding_parameter_server.And we want to keep the original binary name but failed.

Is there any solution to fix this problem or can i propose a PR try to support Kebab Case?

williamstar avatar Nov 29 '21 09:11 williamstar

A PR to support kebab-case is very welcome 👍

davidhewitt avatar Nov 30 '21 07:11 davidhewitt

Ok, I will have a try. 😃

williamstar avatar Nov 30 '21 13:11 williamstar

Great! Please do ask if you have any questions about possible implementation or design.

davidhewitt avatar Nov 30 '21 22:11 davidhewitt

Accept a dict to get the script name from the target.values . I'm not sure if the design is good.

#199

williamstar avatar Dec 02 '21 04:12 williamstar