-
Notifications
You must be signed in to change notification settings - Fork 252
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
Modernize Python 2 code #1121
base: master
Are you sure you want to change the base?
Modernize Python 2 code #1121
Conversation
Have you built a platform with this yet? |
No. I tried the Quickstart in README but I did not get too far... On my macOS box, I edited the I hoped that Jenkins would build the platform and raise issues where it could not do so. |
Build instructions are in the README. < https://github.com/TritonDataCenter/smartos-live> You can run SmartOS in a VM to perform the build. The reality is that the magnitude of the change you’re proposing is going to require a lot of work. Rather than attempt to pawn that work of on others, if you’d really like to see this change land, you’re going to put forth that effort yourself. But a drive by pull request that hasn’t even been tested is not going to cut it. |
Please stop assuming that I am lazy. In #1120 I provided a link to all the steps in the long effort that I went through to successfully port Node.js (and upstream) from Python 2 to Python 3. I could provide examples from other projects as well if that would be helpful but given that the first was not read, I doubt that would be the case. The URL above returns a 404 and even when fixed does not provide someone on macOS enough information to successfully build the development environment. Are any of this project's contributors developing on macOS? I have lots of experience using Docker but it has been more than a decade since I used VMware. Is Docker a possibility or is VMware required? If so, is it required to download |
In fact, all of the developers for SmartOS are using Macs, but the README very clearly states that the SmartOS build requires building on SmartOS. I've corrected the link (my bad, I was on mobile) in my previous comment, but I'll put it again here as well: https://github.com/TritonDataCenter/smartos-live#building-smartos It seems that you're not aware of what SmartOS even is. As its name implies, it's an Operating System and has nothing to do with Linux, so no, Docker won't work. It also runs only on x86, so you can use VMware Fusion if you're on a Mac with an Intel processor. If you have an Apple Silicon processor you can use UTM. Or can use a separate x86 host to run SmartOS directly, or as a VM. There is extensive documentation for installing SmartOS with various installation targets. After which, you must read and carefully follow the documentation for building SmartOS to set up your build environment before you can expect to make a successful build. I also highly recommend reading the Triton Contribution Guidelines as well. If you are having trouble with setting up a build environment, you can reach out to the mailing list since support requests are not handled through GitHub issues or PRs. |
Building a secure OS on insecure foundations is an increasingly difficult task.
Makefile
currently builds with unsupported versions of both Node.js and Python. This pull request focuses on modernizing the latter.As discussed in #1120, the migration to Python 3 is a multistep process so these changes represent a safe stage1.
Find all files that contain Python 3 syntax errors.
%
ruff check --ignore=ALL --output-format=concise
Modernize the code to continue to run on Python 2 but without any Python 3 syntax errors.
%
ruff check --ignore=ALL --output-format=concise