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
Enhancement to devguide for MacOS (and 3.11?) #976
Comments
|
The exact command for macOS mentioned in the devguide works fine for me (I have working tkinter, ssl, etc): Just to clarify, does this^ not work for you, or is it more that it's clunky — or both? |
|
Sorry, I never checked whether or not it worked, though I have no reason to doubt that it does. It would just have taken me several (many?) tries to converge on that solution. I know that the simpler configure command I gave: Does work. I don't know if something changed with configure itself, but I suspect it might have. It would seem it attempts to use pkg-config to determine compile/link flags as much as possible. It can't for GDBM because that package simply fails to provide them. |
It seems the Step by step PR lifecycle guide doesn't set an upstream tracking branch on first push (i.e. with the
To be clear, this didn't cause any of your issues; the main thing is you want to be working on as up to date a copy of the branch as possible to avoid merge conflicts and touching out of date stuff. So long as the user updates/has recently updated their local |
smontanaro commentedOct 31, 2022
•
edited
This bug report is related to my recent experience building from source on my shiny new MacBook Pro, and my crash-and-burn experiences creating and managing a PR against the
argparsedocumentation (and further discussion of the mess I made in another PR.In my attempts to create and manage a pull request, I screwed up some stuff and discovered some other stuff distinct to MacOS. I will just identify them at this point and worry about creating a PR later (not sure I even have the devguide repo checked out at this point).
upstream/main. For naive Git users such as myself, it fails to mention that I need to explicitly set that branch to trackorigin/<branch>. This created some confusion on my part.python/cpythonit's probably worth making it very explicit that the branch for the PR must be created againstupstream/main, notorigin/main. Thegitcommand mentionsupstream, but I think it might be worth a "Note: do not branch locally or against your fork." Again, I have never been (and never will be) an expert Git user, so the subtle details about why this is so will probably always be lost on me. Better to be explicit than implicit...opensslandtcl-tkpackages.xzwas already installed by default. Before I realized this was the case, I installedopenssl@3and created its symlinks. In retrospect,[email protected]was installed by default. All I needed to do was create pkgconfig symlinks. I had to installgdbm, but there aren't any pkgconfig symlinks, so I will eventually have to figure out command line args for its discovery. Adding pkgconfig symlinks was a lot easier than handcrafting the relevant-L,-I, and pkgconfig path magic.CFLAGS,LDFLAGSorPKG_CONFIG_PATHdance (well, except forgdbm). Now I am down to this configure command:./configure GDBM_CFLAGS=-I/opt/homebrew/include GDBM_LIBS=-L/opt/homebrew/lib. I don't know if this applies to 3.11 or just the nascent 3.12, but I suspect a third section needs to be added to reflect the fact that it's clearly getting better. I don't know if that's the Python devs', Apple's, or Homebrew's doing, but kudos to whoever did this.Edit: make the GDBM_LIBS
-L/opt/homebrew/lib -lgdbm:doh:The text was updated successfully, but these errors were encountered: