-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
Failed to build cpython in macOS because it was expecting "python.exe" #131563
Comments
I'm not on macOS and I don't have a clue as to how it works but have you tried following the steps in the devguide? Maybe there is something you missed. |
You need to build on a file system that's case-insensitive, as is the default on AppleFS and HFS+. |
Maybe let someone else who have ever build it under macOS to provide me with some insights. |
I am using macOS Sequoia and already using case-insensitive APFS. But how would running I guessed your reply was in relevant to my question. |
I wish ONLY those who have ever build cpython from GitHub source in I followed the Build Instructions in the README.md file with additional parameters in running
|
I'm afraid you're going to have to be clearer about what error you saw, because your initial post does not include one. |
If you are building on a case-insensitive macOS file system (the macOS default and as it appears you are from the config log), the Python binary in the build directory will have a file name of |
The error you saw on my initial post is the SAME error that I saw on screen. I ran with the following commands:
|
I’m sorry but I really don’t see an error in your initial post. Please show exactly what you mean. |
I checked the generated Makefile and then I realized what you are taking about. The Makefile contained these lines:
So BUILDPYTHON contains the value of Now I knew what's the problem. When I run In short, that is a make dependency issue and someone should review the Today I found the cpython GitHub repository tree was updated. Furthermore I saw the I will provide any update after finish running |
I'm still confused as to what error you might be seeing since I see no But here's a sample build of the current head of cpython (which is currently in the pre-release 3.14 alpha phase) on a vanilla macOS 15.3 system using the current Apple Command Line Tools. If you have a current Xcode installed, it should give the same results.
Note that the inability to build those optional modules is to be expected here If the above doesn't work for you, I suggest simplifying by removing the extra
|
And for completeness, if you choose to install the Python built above, the next steps are:
Since I didn't specify a |
Sorry I re-read the text and found there was NO errors at all. I was intimidated by the
|
I don't want to mess up my Python 3.13 with an alpha version of 3.14 unless I do it in a test environment. Furthermore it may not required |
I clone the GitHub repository of cpython with
git clone https://github.com/python/cpython/
in macOS Sequoia 15.3.2, then I executed./configure --enable-optimizations --with-lto
to create a Makefile. After that, I runmake
but I got the following error which showed thatpython.exe
was expected in macOS environment ?I have included
config.log
andMakefile
for reference.config.zip
Makefile.zip
Bug report
Bug description:
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered: