-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rm autogenerated *.cpp files that shouldn't be in source control #2739
Conversation
Thanks. We definitely don't want to keep auto-generated files under VCS. C++ is always a pain (not sure why this isn't plain C like all the rest) – @persiyanov @menshikh-iv what are the steps to generate those files? Is the process deterministic? Why were the files included? I suspect there was a reason. |
Same as always with
Yes for same envs
See #2739 (comment), Gordon explained an reason |
I don't think he did – he expressed a hypothesis. Either way, these files were committed in error, we want the auto-generated files out. |
He is correct. If you remove all of them for now, don't forget to update https://github.com/RaRe-Technologies/gensim/wiki/Developer-page#making-a-new-release process (CC @mpenkov), no more needed to "re-generate" files stage. |
I think the recent re-inclusion of AFAICT: When I 1st started contributing, the But it probably wasn't great project hygiene to have tens-of-thousands of lines of essentially-unreviewed autogenerated code in the source tree, when the authoritative/reviewed version of the code was From my reading of the log, it seems the c/c++ generated sources were only removed 2019-10-25 (e859c11), after any official releases. But unless there's a pressing explicit reason to include them – and I don't know any – I believe they should stay out. Asking devs working from a source checkout to install |
@gojomo I think we also need to do something about https://github.com/RaRe-Technologies/gensim/blob/develop/release/cython.sh - we can now "just" remove it, right? |
Hmm; I've never explicitly run that (I've not packaged such a release, and it looks like the choice to take |
I've expanded this to also delete |
@mpenkov can you please confirm and if OK, merge? Cheers. |
If there's doubts whether If whoever packages up releases confirms that But it'd be nice to merge this in one form or the other, to get those |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay in looking at this.
I don't think cython.sh is necessary. Let's leave it out. If we happen to need it when we make a new release, then it will be trivial to resurrect it.
@mpenkov if you're OK with this PR, feel free to merge. |
With 3 approvals, I'm pressing the 'merge' button. |
Per my comment on #2700, that PR was merged with autogenerated
*.cpp
files that shouldn't be in source-control. (Long ago, it seems we were committing those to allow install-compilations by people withoutcython
, but more recently I believe all builds/deploys were working fine generating these on demand – and if we were consciously changing back to the old policy, the*.c
files would need to also be added.)@piskvorky @mpenkov - if that matches your understanding, this PR just removes those 3 erroneously-added files, hit the 'merge' button at will.