-
Notifications
You must be signed in to change notification settings - Fork 188
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
Got rid of imp
rewriting of lib, plugins, and gui dirs
#2020
Conversation
@mhsmith or perhaps @jonas-lundqvist or @mpatc -- I wasn't able to correctly update the gradle file(s) -- and I think the Android version no longer builds correctly. Would you mind taking this branch out for a spin and getting the Android version to build correctly and then letting me know what I need to change? @EchterAgo -- If you also have time and don't mind looking over this PR (I know it's large but most of it is renames) -- just to see if I missed anything. I built AppImage, Windows, OSX, and srcdist and they all work and are correct. |
A few more changes: |
Windows & Linux builds: https://ec.loping.net/4.1.1-32-ge4f688765/ |
Argh sorry I should have done a pull off your branch not a cherry-pick. Can you accept my apology? It was late... |
@EchterAgo Ok so my AppImage has a differeent sha256sum than yours. The Windows EXE's do match, however. Here is my sha256sum:
I noticed that my build log differs from yours in that I got some warnings (looks like something went awry with the CLI args on one of the commands??):
Any thoughts? Note I am building on a macOS host using Docker. |
Doesn't matter, I thought you were going to squash this anyway. |
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.
I assume the Android build problem was this one?
Execution failed for task ':app:mergeMainNetDebugPythonSources'.
> Encountered duplicate path "electroncash_gui/__init__.py" during copy operation configured with DuplicatesStrategy.FAIL
I'll have a look and push a fix to this branch.
Module `imp` is deprecated and will be removed in a future Python version. So, rather than do the `imp` rewriting of the lib, gui, and plugins directories, we renamed these directories to electroncash, electroncash_gui, and electroncash_plugins to match the Python module names. All setup and packaging files have been updated such that Windows, Linux AppImage, OSX, iOS and srcdist now build correctly using these new directories. Android has not been properly migrated over yet, but that will be coming soon. Also in this commit: updated Dockerfiles for Wine and Linux AppImage builds since they grew stale and some package versions needed updating. We also bumped the app version to 4.2.0 since this filesystem renaming change can potentially be considedered a significant enough change, as per semantic versioning.
Updated `MANIFEST.in` to include the new package name. Fixed some comments referring to the old package names. Removed `package_dir` from `setup.py`, it is not necessary anymore.
e4f6887
to
1c29d9a
Compare
Rebased after migrating the Dockerfile fixes over to master. |
Yes -- and I think it's because now there are 2 copies of Thanks man! (Note I just rebased and force-pushed in order to make the Dockerfile fixes for Wine and Linux live in master.. sorry about that!) |
Regarding the non-reproducibility for |
The Android build works fine now. |
Awesome. I'm a little confused -- does this mean it ends up copying all of that code from |
No, because I've changed the |
Ah, ok great @mhsmith -- thanks a lot for your rapid help here. Awesome. I'm merging this... |
This script got left behind and was still referring to the old lib/ folder. Fixed. Follow-up to #2020
…follow-up) This script got left behind and was still referring to the old lib/ folder. Fixed. Follow-up to Electron-Cash#2020
Module
imp
is deprecated and will be removed in a future Pythonversion. So, rather than do the
imp
rewriting of the lib, gui, andplugins directories, we renamed these directories to electroncash,
electroncash_gui, and electroncash_plugins to match the Python module
names.
All setup and packaging files have been updated such that Windows,
Linux AppImage, OSX, iOS and srcdist now build correctly using these new
directories.
Android has not been properly migrated over yet, but that will be coming
soon.
Also in this commit: updated Dockerfiles for Wine and Linux AppImagebuilds since they grew stale and some package versions needed updating.
We also bumped the app version to 4.2.0 since this filesystem renaming
change can potentially be considedered a significant enough change, as
per semantic versioning.