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:
return But 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_ext
andCython.Distutils.build_ext:build_ext
don't create any files ininitialize/finalize_options
, they just modify attributes.They will only touch the disk when the
run
method is called. With that in mind, it would still be possible to customise therun
method behaviour based onif self.editable_mode
...So maybe the extra artifacts that you don't want are generated elsewhere?
How about the
cythonize
function you are calling insetup.py
. Are you sure is not this function that changes the file system?Have…