rustpython-doc as external module #3638
Conversation
|
If we're doing that, we could probably just output it as rust code and |
|
I think we don't need to care about dependencies for derive module. It will be only used during the build step. We will not use any serde-json code from the end product. |
|
Whats happening to mac test build? |
|
Oh, wait - also my concern about doing this is that it'll make a cpython environment a requirement for building, which I feel is like undesired. Also build times, traverse_all() takes forever. |
|
I can agree about python dependency by how you see the dependency is. Maybe checking for python in local environment or download the pre-built database from internet would work. I don't agree about build time. It will be run only once unless it needs to be updated, and it requires only one second to run. |
|
Huh, on mine it hangs for ten seconds and then core dumps with an illegal instruction. Are you on an M1? :P Oh, maybe one of the reasons for that is that it checks every module, right? It needs to be in a totally clean environment to just do the stdlib ones. |
|
Yes, I am using a new clean venv for the build. |
0231dad to
4e52f68
Compare
|
The build error must be one of the reason we should run scripts on CI |
|
I still really don't think invoking cpython in the build process (and specifically depending on the python environment the build process runs in) is a good idea; even in CI that failure isn't from a stdlib package! it's from |
|
I could make a quick patch for that unicode escape issue, but I don't think the stdlib docstrings would ever have a non-ascii character in them. |
|
oh, that explains the reason it only fails on linux! btw, please check the new |
|
I added whitelist to skip third party libraries. it will be faster. The doc generation is totally optional. Maybe we'd better to have |
|
I... still don't like that the build will be different depending on the python version installed. I mean, it doesn't really matter that the docs are always up to date, right? If we need to update the docs db, we can, I still don't think I see the benefit of generating them as part of the build process. |
|
oh, that reminded me why i made the doc to json file. |
not to archive every version of them to repository
|
@coolreader18 no instant generation anymore. will you please also review other PRs? |
No description provided.