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
Build Python outside the source directory #57366
Comments
It is no more possible to build Python outside its source directory. Try using: cd <python sources directory> Attached patch should fix this issue. |
New changeset 1811c4e5527f by Victor Stinner in branch 'default': |
Which is platform with broken VPATH support and/or make ? |
Well, my commit is maybe useless... I tried to have two builds at the same time:
If I compile in debug mode before building in release mode, the build of the release mode fails because make finds some objects in source tree (and so think that it doesn't need to build them). I tried to avoid completly VPATH to support this use case, but I'm not sure that it is possible (at least, it doesn't work: it fails to build pgen in the release). |
I wonder why you are not stopped by: Applied patch is save but I cannot understand what actually is resolved. |
Building outside of the source directory was supported, if the source directory was clean. In practice, the source directory could be unclean as long as a few files were not there (Parser/*.o, Modules/_testembed), so it was quite annoying. If the patch allows people to build inside the source directory and in other directories without cleaning, I’m +1! |
I don't have this issue anymore (but I also don't build Python outside the source directory anymore), I already applied my patch, so I consider that the issue can be closed. If someone has a similar problem, it's maybe better to open a new issue. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: