-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Add scripts and files necessary to create a macOS installer #13992
Conversation
Hello @mrclary! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2020-10-23 04:34:03 UTC |
Requires #12236 to be merged. |
@ccordoba12, we should be good to incorporate into github actions, though I don't have any experience there... |
Great! Please rebase to get the fix to our tests that was added by @dalthviz for the Windows installer in PR #13269.
@dalthviz and I can give you a hand with that. Could you describe the steps necessary to build the dmg? |
@mrclary for the Github Action to build the installer maybe checking the workflow definition for the windows installer could useful. You can check it here: https://github.com/spyder-ide/spyder/blob/4.x/.github/workflows/installer-win.yml Basically the workflow defines a series of the events that trigger the workflow (for example a pull request, a release, etc), then the environment where the workflow will run (OS, env variables, etc) and finally a series of steps (to install python, install dependencies, run a custom script, upload artifacts, etc). Probably you can use the windows installer workflow to create a similar workflow for macOS but let us know if you have any question and we will check 👍 |
@ccordoba12 @dalthviz , |
It seems to have trouble installing dependencies... |
There seems to be a syntax error in one of your scripts: File "setup.py", line 161
_py_ver = f'python{py_ver[0]}.{py_ver[1]}'
^
SyntaxError: invalid syntax |
I saw that, but it did not make sense because the script runs fine on my local machine. It looks suspiciously like Python 2.7 is being referenced. I think it may be related to the errors in the previous "Install dependencies" step.
Why can't it resolve pyqt5 requirement? Why is here a Python 2.7 deprecation? |
Okay, found the issue. As I suspected, |
Success! Sort of... But I have confirmed that the application works as expected from the downloaded artifact. :-) |
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.
Thanks a lot for this @mrclary! This looks pretty good!
3b4142c
to
df95bd6
Compare
@ccordoba12, I think this is ready now. |
Hi @mrclary! I just tried the full installer and found a couple of things that are not working as expected, |
This should be solved by adding Pillow to the app. |
The Spyder-lite installer is working perfectly 🎉 |
@steff456, thanks for the feedback. Can you tell me the following?
@ccordoba12, I'll check on including Pillow with the full version. |
The errors I found appeared when using the "full" version dmg, the |
I think this is also failing because Pillow is not part of the installer. That's because the PyLS imports several modules during initialization to speed up completions. But if some of them fail to be imported, the server dies completely. That error was fixed by @dalthviz in palantir/python-language-server#873. I'll update our subrepo with it.
This is worrisome. I'll try to give you a hand with that problem during the weekend. |
* modify setup.py to accommdate github action
* don't bother with setup-python since we can only use default Python for now * revise task names
* attempt to bypass DMGError('Unable to detach device cleanly'). Note: the dmg is always detached, even if by force. I don't know why this is occurring. It seemed that using '-l' bash flag in installer-macos.yml avoided this error, but apparently it is intermittent. What are the consequences of a forced detach? Is there a process that hasn't completed, preventing a clean detach?
…rsions on spyder release
* simplify command line parsing * distribution directory is now input
…h/.dylibs/libjpeg.9.dylib"
@steff456 @ccordoba12, the latest commit should fix the issue with FYI, on this local build, when first launching, I did not get a bogus project. I think it may be related to related to launching a newly downloaded Spyder application for the first time (you know how you get the warning message about an unknown developer). It does not seem to be related to whether Spyder had an open project on the last session. |
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.
Thanks a lot @mrclary for your contribution!
@juanis2112 tested the full installer generated by your last commit and found the issues reported by @steff456 are fixed now.
Thanks to all the core developers for their feedback! I'm glad I could contribute. |
Description of Changes
Added files for creating Spyder.app macOS standalone application.
Included the necessary resources to build a standalone macOS application.
See spyder-ide/mac-application#3
Issue(s) Resolved
Fixes #13978
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct:
mrclary