summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2004-02-24 21:25:31 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2004-02-24 21:25:31 (GMT)
commit49be4cc8616d7ed6a982cfb9d5d9d75c18266943 (patch)
treeae05b68e37744470dc31bbd6d79dc29363cb2a95
parent59e02c110da24c8cfb1b14edd737667a7f061937 (diff)
downloadcpython-49be4cc8616d7ed6a982cfb9d5d9d75c18266943.zip
cpython-49be4cc8616d7ed6a982cfb9d5d9d75c18266943.tar.gz
cpython-49be4cc8616d7ed6a982cfb9d5d9d75c18266943.tar.bz2
Setup file to allow the QuickTime for 2.4 to be compiled
for MacPython 2.3 (and, hopefully, python 2.3 for windows too).
-rw-r--r--Mac/Modules/qt/qtscan.py4
-rwxr-xr-xMac/Modules/qt/setup.py13
2 files changed, 17 insertions, 0 deletions
diff --git a/Mac/Modules/qt/qtscan.py b/Mac/Modules/qt/qtscan.py
index 1006c6c..b756bfe 100644
--- a/Mac/Modules/qt/qtscan.py
+++ b/Mac/Modules/qt/qtscan.py
@@ -9,15 +9,19 @@ from scantools import Scanner
LONG = "QuickTime"
SHORT = "qt"
HEADERFILES= (
+# "Components.h" -- In Carbon.Cm
"Movies.h",
"ImageCompression.h",
"QuickTimeComponents.h",
# "ImageCodec.h" -- seems not too useful, and difficult.
+# "IsochronousDataHandlers.h" -- Is this useful?
"MediaHandlers.h",
# "QTML.h", -- Windows only, needs separate module
# "QuickTimeStreaming.h", -- Difficult
# "QTStreamingComponents.h", -- Needs QTStreaming
"QuickTimeMusic.h",
+# "QuickTimeVR.h", -- Not done yet
+# "Sound.h", -- In Carbon.Snd
)
OBJECTS = ("Movie", "Track", "Media", "UserData", "TimeBase", "MovieController",
"IdleManager", "SGOutput")
diff --git a/Mac/Modules/qt/setup.py b/Mac/Modules/qt/setup.py
new file mode 100755
index 0000000..98d836d
--- /dev/null
+++ b/Mac/Modules/qt/setup.py
@@ -0,0 +1,13 @@
+# This is a temporary setup script to allow distribution of
+# MacPython 2.4 modules for MacPython 2.3.
+
+from distutils.core import Extension, setup
+
+setup(name="QuickTime", version="0.2",
+ ext_modules=[
+ Extension('QuickTime._Qt', ['_Qtmodule.c'],
+ extra_link_args=['-framework', 'Carbon', '-framework', 'QuickTime'])
+ ],
+ py_modules=['QuickTime.Qt', 'QuickTime.QuickTime'],
+ package_dir={'QuickTime':'../../../Lib/plat-mac/Carbon'}
+ )