mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Enable building of Carbon toolbox modules with unix-Python.
This commit is contained in:
parent
ff8dec7427
commit
aaebdd6a02
26 changed files with 26 additions and 58 deletions
|
|
@ -7,9 +7,8 @@ import os
|
||||||
import string
|
import string
|
||||||
import MacOS
|
import MacOS
|
||||||
|
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "Appearance"
|
LONG = "Appearance"
|
||||||
SHORT = "app"
|
SHORT = "app"
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,9 @@ import string
|
||||||
import MacOS
|
import MacOS
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
BGENDIR= os.path.join(sys.prefix, ':Tools:bgen:bgen:')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
|
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
from scantools import Scanner, Scanner_OSX
|
from scantools import Scanner, Scanner_OSX
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from scantools import Scanner_OSX
|
from scantools import Scanner_OSX
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "CoreFoundation"
|
LONG = "CoreFoundation"
|
||||||
SHORT = "cf"
|
SHORT = "cf"
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from scantools import Scanner_OSX
|
from scantools import Scanner_OSX
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "CoreGraphics"
|
LONG = "CoreGraphics"
|
||||||
SHORT = "cg"
|
SHORT = "cg"
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "Components"
|
LONG = "Components"
|
||||||
SHORT = "cm"
|
SHORT = "cm"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
# Scan <Controls.h>, generating ctlgen.py.
|
# Scan <Controls.h>, generating ctlgen.py.
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
|
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
# input = "Controls.h" # Universal Headers < 3.3
|
# input = "Controls.h" # Universal Headers < 3.3
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,10 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
|
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "Dialogs"
|
LONG = "Dialogs"
|
||||||
SHORT = "dlg"
|
SHORT = "dlg"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
# Scan <Drag.h>, generating draggen.py.
|
# Scan <Drag.h>, generating draggen.py.
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
|
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR, INCLUDEDIR
|
|
||||||
|
|
||||||
MISSING_DEFINES="""
|
MISSING_DEFINES="""
|
||||||
kDragHasLeftSenderWindow = (1 << 0)
|
kDragHasLeftSenderWindow = (1 << 0)
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "Events"
|
LONG = "Events"
|
||||||
SHORT = "evt"
|
SHORT = "evt"
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "Fonts"
|
LONG = "Fonts"
|
||||||
SHORT = "fm"
|
SHORT = "fm"
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "Balloons"
|
LONG = "Balloons"
|
||||||
SHORT = "help"
|
SHORT = "help"
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,10 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
|
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "HtmlRendering"
|
LONG = "HtmlRendering"
|
||||||
SHORT = "html"
|
SHORT = "html"
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,9 @@
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import string
|
import string
|
||||||
import MacOS
|
|
||||||
|
|
||||||
BGENDIR= '/Users/jack/src/python/Tools/bgen/bgen'
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
print sys.path, sys.prefix
|
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
from scantools import Scanner_OSX
|
from scantools import Scanner_OSX
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "Icons"
|
LONG = "Icons"
|
||||||
SHORT = "icn"
|
SHORT = "icn"
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "Lists"
|
LONG = "Lists"
|
||||||
SHORT = "list"
|
SHORT = "list"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
# Scan <Menus.h>, generating menugen.py.
|
# Scan <Menus.h>, generating menugen.py.
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
|
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
input = "Menus.h"
|
input = "Menus.h"
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from scantools import Scanner_OSX
|
from scantools import Scanner_OSX
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "MacTextEditor"
|
LONG = "MacTextEditor"
|
||||||
SHORT = "mlte"
|
SHORT = "mlte"
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,10 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
|
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
input = "QuickDraw.h"
|
input = "QuickDraw.h"
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
# Scan an Apple header file, generating a Python file of generator calls.
|
# Scan an Apple header file, generating a Python file of generator calls.
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "QuickTime"
|
LONG = "QuickTime"
|
||||||
SHORT = "qt"
|
SHORT = "qt"
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,8 @@ import os
|
||||||
import string
|
import string
|
||||||
import MacOS
|
import MacOS
|
||||||
|
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,9 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
if os.sep == ':':
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
|
||||||
else:
|
|
||||||
BGENDIR="../../../Tools/bgen/bgen"
|
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "Scrap"
|
LONG = "Scrap"
|
||||||
SHORT = "scrap"
|
SHORT = "scrap"
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,8 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
LONG = "TextEdit"
|
LONG = "TextEdit"
|
||||||
SHORT = "te"
|
SHORT = "te"
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
# Scan an Apple header file, generating a Python file of generator calls.
|
# Scan an Apple header file, generating a Python file of generator calls.
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
|
from bgenlocations import TOOLBOXDIR, BGENDIR
|
||||||
sys.path.append(BGENDIR)
|
sys.path.append(BGENDIR)
|
||||||
from bgenlocations import TOOLBOXDIR
|
|
||||||
|
|
||||||
from scantools import Scanner
|
from scantools import Scanner
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue