You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Hi, I'm not sure if it's possible to compile a pure python package (which should be a folder and include many *.py files) into a single so/pyd file?
Describe the solution you'd like.
some times we implement a python package, when we want to protect the code, we need to build all these files one by one to so/pyd file, if we can build all of them into a single file, it will be more convenient and hide the code structure.
Describe alternatives you've considered.
add an args "--module" for package compile.
Additional context
No response
The text was updated successfully, but these errors were encountered:
I'm not sure if it's possible to compile a pure python package (which should be a folder and include many *.py files) into a single so/pyd file?
It isn't really supported. They're is a hacky workaround and a few third-party tools that automate the hacky workaround described at https://stackoverflow.com/q/30157363.
I don't really recommend spending too much time trying to make this work though - it isn't how Cython is designed to operate and you will run into problems.
we want to protect the code
This is a use case that I personally am not interested in supporting (I think most of the other Cython devs feel similarly, but I can't say that with absolute confidence).
Cython is open source so you're welcome to use it however you like. But we generally haven't implemented features that are only of interest for "protecting" code.
Is your feature request related to a problem? Please describe.
Hi, I'm not sure if it's possible to compile a pure python package (which should be a folder and include many *.py files) into a single so/pyd file?
Describe the solution you'd like.
some times we implement a python package, when we want to protect the code, we need to build all these files one by one to so/pyd file, if we can build all of them into a single file, it will be more convenient and hide the code structure.
Describe alternatives you've considered.
add an args "--module" for package compile.
Additional context
No response
The text was updated successfully, but these errors were encountered: