Is it possible to disable build_ext for develop/editable installation? #3911
-
|
hi! Most of the python source files (*.py) are compiled into *.so for "production" wheel, but for development it is necessary to keep them as source files. I tried to implement if self.editable_mode:
returnBut when I type So, I have a lot of extra work and unwanted artifacts in the source directory. How can i solve this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Have you considered postponing some of the processing you are doing to the In theory the The |
Beta Was this translation helpful? Give feedback.
If you have a look on the source-code, you can see that both
setuptools.command.build_ext:build_extandCython.Distutils.build_ext:build_extdon't create any files ininitialize/finalize_options, they just modify attributes.They will only touch the disk when the
runmethod is called. With that in mind, it would still be possible to customise therunmethod behaviour based onif self.editable_mode...So maybe the extra artifacts that you don't want are generated elsewhere?
How about the
cythonizefunction you are calling insetup.py. Are you sure is not this function that changes the file system?Have…