]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Setup file to allow the QuickTime for 2.4 to be compiled
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 24 Feb 2004 21:25:31 +0000 (21:25 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 24 Feb 2004 21:25:31 +0000 (21:25 +0000)
for MacPython 2.3 (and, hopefully, python 2.3 for windows too).

Mac/Modules/qt/qtscan.py
Mac/Modules/qt/setup.py [new file with mode: 0755]

index 1006c6c73600376059838fe67ed85a25793a5aef..b756bfe8274deb022477030b7b290d459aa687b4 100644 (file)
@@ -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 (executable)
index 0000000..98d836d
--- /dev/null
@@ -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'}
+       )