You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by GitBox <gi...@apache.org> on 2022/09/20 12:34:26 UTC

[GitHub] [buildstream] ssssam opened a new issue, #1760: Cannot use Pip 'editable' mode to develop BuildStream 2

ssssam opened a new issue, #1760:
URL: https://github.com/apache/buildstream/issues/1760

   As noted here: https://github.com/apache/buildstream/pull/1741#discussion_r972075940 - the `pip install --editable` feature is not recommended for Bst development.
   
   One issue is that Cython source files are not watched for changes, so modifying those `.pyx` files does not update the generated `.c` and `.so` files.
   
   Editable installs are standardised since https://peps.python.org/pep-0660/, which aims to "[let] project authors select the backend or implement the method that provides the editable mechanism that best suit their requirements, and test it works correctly."
   
   This is a tracking issue for someone to do the work of selecting and testing an 'editable install' mechanism that works for Bst 2. In the meantime we will warn developers to avoid `--editable` mode.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Cannot use Pip 'editable' mode to develop BuildStream 2 [buildstream]

Posted by "ssssam (via GitHub)" <gi...@apache.org>.
ssssam closed issue #1760: Cannot use Pip 'editable' mode to develop BuildStream 2
URL: https://github.com/apache/buildstream/issues/1760


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Cannot use Pip 'editable' mode to develop BuildStream 2 [buildstream]

Posted by "abderrahim (via GitHub)" <gi...@apache.org>.
abderrahim commented on issue #1760:
URL: https://github.com/apache/buildstream/issues/1760#issuecomment-1826375760

   > One issue is that Cython source files are not watched for changes, so modifying those .pyx files does not update the generated .c and .so files.
   
   I don't think there is a way to make it work with compiled extensions, even with PEP 660.
   
   One possible solution is to use the pure python mode of cython. This allows it to work without compilation (albeit slowly) and to be compiled for better performance. I started doing it a while ago (https://github.com/apache/buildstream/pull/1547) and found it not good enough. It may be a good idea to revisit it now that cython 3.0 was released.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Cannot use Pip 'editable' mode to develop BuildStream 2 [buildstream]

Posted by "ssssam (via GitHub)" <gi...@apache.org>.
ssssam commented on issue #1760:
URL: https://github.com/apache/buildstream/issues/1760#issuecomment-1827560575

   If nobody asked "why can't I use `-e` mode" in 2 years then I think we can just close. did so.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Cannot use Pip 'editable' mode to develop BuildStream 2 [buildstream]

Posted by "gtristan (via GitHub)" <gi...@apache.org>.
gtristan commented on issue #1760:
URL: https://github.com/apache/buildstream/issues/1760#issuecomment-1826883819

   Is this important for any reason at all ?
   
   What is required to WONTFIX this issue ? Update some docs ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org