mirror of https://github.com/python/cpython
If genpluginprojects is called from fullbuild we set the Python source directory to be the same as fullbuild uses (in stead of using the default sys.prefix). This fixes an issue Mark Day raised that you can't use fullbuild with one Python installation to build another one.
This commit is contained in:
parent
214a0b1382
commit
e791a6421f
|
@ -18,6 +18,7 @@ import MacOS
|
|||
import EasyDialogs
|
||||
import re
|
||||
import string
|
||||
import genpluginprojects
|
||||
|
||||
import aetools
|
||||
import AppleEvents
|
||||
|
@ -377,6 +378,8 @@ def main():
|
|||
if not ok:
|
||||
sys.exit(0)
|
||||
dir = dir.as_pathname()
|
||||
# Set genpluginprojects to use this folder (slight hack)
|
||||
genpluginprojects.PYTHONDIR = dir
|
||||
|
||||
todo = handle_dialog(os.path.join(dir, MACBUILDNO))
|
||||
|
||||
|
|
|
@ -3,7 +3,8 @@ import sys
|
|||
import os
|
||||
import string
|
||||
|
||||
PROJECTDIR = os.path.join(sys.prefix, ":Mac:Build")
|
||||
PYTHONDIR = sys.prefix
|
||||
PROJECTDIR = os.path.join(PYTHONDIR, ":Mac:Build")
|
||||
MODULEDIRS = [ # Relative to projectdirs
|
||||
"::Modules:%s",
|
||||
"::Modules",
|
||||
|
|
Loading…
Reference in New Issue