Skip to content

Is it possible to disable build_ext for develop/editable installation? #3911

Answered by abravalheri
senysenyseny16 asked this question in Q&A
Discussion options

You must be logged in to vote

If you have a look on the source-code, you can see that both setuptools.command.build_ext:build_ext and Cython.Distutils.build_ext:build_ext don't create any files in initialize/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 the run method behaviour based on if self.editable_mode...

So maybe the extra artifacts that you don't want are generated elsewhere?

How about the cythonize function you are calling in setup.py. Are you sure is not this function that changes the file system?


In this case Cython will compile extensions for any installation (prod and editable).

Have…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@senysenyseny16
Comment options

@abravalheri
Comment options

Answer selected by senysenyseny16
@senysenyseny16
Comment options

@Vegal56
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants