René's URL Explorer Experiment


Title: Envvars not set in subshell in macOS Python 3.7-3.9 configure invocation · Issue #1049 · python/devguide · GitHub

Open Graph Title: Envvars not set in subshell in macOS Python 3.7-3.9 configure invocation · Issue #1049 · python/devguide

X Title: Envvars not set in subshell in macOS Python 3.7-3.9 configure invocation · Issue #1049 · python/devguide

Description: Describe the bug I've tried building Python 3.9.16 on macOS following the dev guide and I believe there is an issue with the command as pkg-config fails to get the value set for PKG_CONFIG_PATH as, in my limited knowledge of the shell, I...

Open Graph Description: Describe the bug I've tried building Python 3.9.16 on macOS following the dev guide and I believe there is an issue with the command as pkg-config fails to get the value set for PKG_CONFIG_PATH as,...

X Description: Describe the bug I've tried building Python 3.9.16 on macOS following the dev guide and I believe there is an issue with the command as pkg-config fails to get the value set for PKG_CONFIG_PATH...

Opengraph URL: https://github.com/python/devguide/issues/1049

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Envvars not set in subshell in macOS Python 3.7-3.9 configure invocation","articleBody":"**Describe the bug**\r\n\r\nI've tried building Python 3.9.16 on macOS following the dev guide and I believe there is an issue with the command as `pkg-config` fails to get the value set for `PKG_CONFIG_PATH` as, in my limited knowledge of the shell, I believe `pkg-config --libs tcl tk` runs on a subshell.\r\n\r\nThe current `configure` command produces the following output:\r\n\r\n```sh\r\n$ CFLAGS=\"-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include\" \\\r\n  LDFLAGS=\"-L$(brew --prefix gdbm)/lib -L$(brew --prefix xz)/lib\" \\\r\n  PKG_CONFIG_PATH=\"$(brew --prefix tcl-tk)/lib/pkgconfig\" \\\r\n  ./configure --with-pydebug \\\r\n          --with-openssl=$(brew --prefix openssl@1.1) \\\r\n          --with-tcltk-libs=\"$(pkg-config --libs tcl tk)\" \\\r\n          --with-tcltk-includes=\"$(pkg-config --cflags tcl tk)\"\r\nPackage tcl was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `tcl.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package 'tcl' found\r\nPackage tk was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `tk.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package 'tk' found\r\nPackage tcl was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `tcl.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package 'tcl' found\r\nPackage tk was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `tk.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package 'tk' found\r\n```\r\n\r\n**Expected behavior**\r\n\r\nThe one-line command should properly set `PKG_CONFIG_PATH`.\r\n\r\nI've had success running the following:\r\n\r\n```sh\r\n$ export PKG_CONFIG_PATH=\"$(brew --prefix tcl-tk)/lib/pkgconfig\"; \\\r\nCFLAGS=\"-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include\" \\\r\nLDFLAGS=\"-L$(brew --prefix gdbm)/lib -L$(brew --prefix xz)/lib\" \\\r\n./configure --with-pydebug \\\r\n          --with-openssl=$(brew --prefix openssl@1.1) \\\r\n          --with-tcltk-libs=\"$(pkg-config --libs tcl tk)\" \\\r\n          --with-tcltk-includes=\"$(pkg-config --cflags tcl tk)\"\r\nchecking build system type... aarch64-apple-darwin22.3.0\r\nchecking host system type... aarch64-apple-darwin22.3.0\r\nchecking for python3.9... python3.9\r\nchecking for --enable-universalsdk... no\r\nchecking for --with-universal-archs... no\r\nchecking MACHDEP... \"darwin\"\r\nchecking for gcc... gcc\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables...\r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether gcc accepts -g... yes\r\nchecking for gcc option to accept ISO C89... none needed\r\nchecking how to run the C preprocessor... gcc -E\r\nchecking for grep that handles long lines and -e... /usr/bin/grep\r\nchecking for a sed that does not truncate output... /usr/bin/sed\r\nchecking for --with-cxx-main=\u003ccompiler\u003e... no\r\nchecking for g++... no\r\nconfigure:\r\n\r\n  By default, distutils will build C++ extension modules with \"g++\".\r\n  If this is not intended, then set CXX on the configure command line.\r\n\r\nchecking for the platform triplet based on compiler characteristics... darwin\r\nchecking for multiarch...\r\nchecking for -Wl,--no-as-needed... no\r\nchecking for egrep... /usr/bin/grep -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys/types.h... yes\r\nchecking for sys/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking minix/config.h usability... no\r\nchecking minix/config.h presence... ^C%\r\n```\r\n\r\n**Additional context**\r\n\r\nThere must be something that can be done differently, but I know I'm no expert in the matter.\r\n","author":{"url":"https://github.com/cesarcoatl","@type":"Person","name":"cesarcoatl"},"datePublished":"2023-02-09T16:37:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/1049/devguide/issues/1049"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a2705e2c-00dc-c284-9c19-6acd102a8c4c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB49A:26204A:A3F8E6:DC4BF7:696991DE
html-safe-noncec0f33199b39f7697f4a16aaa9dadf9bb5289a5a440f53b5554732de1103e2001
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDlBOjI2MjA0QTpBM0Y4RTY6REM0QkY3OjY5Njk5MURFIiwidmlzaXRvcl9pZCI6IjI5MjgwMTIxODgyMjkxNDUwNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd2da843c9bd7971578dc8bb44938cbeb7554196b7f0121ee80a079cf866fe691
hovercard-subject-tagissue:1578227837
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/devguide/1049/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8e02375b481c19abf6653ca331c90af612404262128770668d37a2487dd2db48/python/devguide/issues/1049
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8e02375b481c19abf6653ca331c90af612404262128770668d37a2487dd2db48/python/devguide/issues/1049
og:image:altDescribe the bug I've tried building Python 3.9.16 on macOS following the dev guide and I believe there is an issue with the command as pkg-config fails to get the value set for PKG_CONFIG_PATH as,...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecesarcoatl
hostnamegithub.com
expected-hostnamegithub.com
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
turbo-cache-controlno-preview
go-importgithub.com/python/devguide git https://github.com/python/devguide.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id63972479
octolytics-dimension-repository_nwopython/devguide
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id63972479
octolytics-dimension-repository_network_root_nwopython/devguide
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/devguide/issues/1049#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fdevguide%2Fissues%2F1049
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fdevguide%2Fissues%2F1049
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fdevguide
Reloadhttps://github.com/python/devguide/issues/1049
Reloadhttps://github.com/python/devguide/issues/1049
Reloadhttps://github.com/python/devguide/issues/1049
python https://github.com/python
devguidehttps://github.com/python/devguide
Please reload this pagehttps://github.com/python/devguide/issues/1049
Notifications https://github.com/login?return_to=%2Fpython%2Fdevguide
Fork 961 https://github.com/login?return_to=%2Fpython%2Fdevguide
Star 2k https://github.com/login?return_to=%2Fpython%2Fdevguide
Code https://github.com/python/devguide
Issues 98 https://github.com/python/devguide/issues
Pull requests 18 https://github.com/python/devguide/pulls
Actions https://github.com/python/devguide/actions
Projects 1 https://github.com/python/devguide/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/devguide/security
Please reload this pagehttps://github.com/python/devguide/issues/1049
Insights https://github.com/python/devguide/pulse
Code https://github.com/python/devguide
Issues https://github.com/python/devguide/issues
Pull requests https://github.com/python/devguide/pulls
Actions https://github.com/python/devguide/actions
Projects https://github.com/python/devguide/projects
Security https://github.com/python/devguide/security
Insights https://github.com/python/devguide/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/devguide/issues/1049
New issuehttps://github.com/login?return_to=https://github.com/python/devguide/issues/1049
#1052https://github.com/python/devguide/pull/1052
Envvars not set in subshell in macOS Python 3.7-3.9 configure invocationhttps://github.com/python/devguide/issues/1049#top
#1052https://github.com/python/devguide/pull/1052
https://github.com/erlend-aasland
bughttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/cesarcoatl
https://github.com/cesarcoatl
cesarcoatlhttps://github.com/cesarcoatl
on Feb 9, 2023https://github.com/python/devguide/issues/1049#issue-1578227837
erlend-aaslandhttps://github.com/erlend-aasland
bughttps://github.com/python/devguide/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.