Mercurial > cpython-lru_cache-weakref
annotate Mac/Modules/launch/setup.py @ 32527:0da660e05e69 legacy-trunk
"#if WITH_THREAD" is incorrect; must be #ifdef instead; WITH_THREAD
isn't always set to an integer value when it's defined.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Wed, 07 Jul 2004 20:42:07 +0000 |
| parents | 2c6123d925fe |
| children | c3a096bfbd6b |
| rev | line source |
|---|---|
|
31160
2a0782cc151f
Made this module compatible with Python2.3, and added a temporary setup
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1 # This is a temporary setup script to allow distribution of |
|
2a0782cc151f
Made this module compatible with Python2.3, and added a temporary setup
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
2 # MacPython 2.4 modules for MacPython 2.3. |
|
2a0782cc151f
Made this module compatible with Python2.3, and added a temporary setup
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
3 |
|
2a0782cc151f
Made this module compatible with Python2.3, and added a temporary setup
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
4 from distutils.core import Extension, setup |
|
2a0782cc151f
Made this module compatible with Python2.3, and added a temporary setup
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
5 |
|
31585
2c6123d925fe
kLsUnknownType and kLSUnknownCreator were ints in stead of OSTypes.
Jack Jansen <jack.jansen@cwi.nl>
parents:
31160
diff
changeset
|
6 setup(name="LaunchServices", version="0.2", |
|
31160
2a0782cc151f
Made this module compatible with Python2.3, and added a temporary setup
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
7 ext_modules=[ |
|
2a0782cc151f
Made this module compatible with Python2.3, and added a temporary setup
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
8 Extension('_Launch', ['_Launchmodule.c'], |
|
2a0782cc151f
Made this module compatible with Python2.3, and added a temporary setup
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
9 extra_link_args=['-framework', 'ApplicationServices']) |
|
2a0782cc151f
Made this module compatible with Python2.3, and added a temporary setup
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
10 ], |
|
2a0782cc151f
Made this module compatible with Python2.3, and added a temporary setup
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
11 py_modules=['LaunchServices.Launch', 'LaunchServices.LaunchServices'], |
|
2a0782cc151f
Made this module compatible with Python2.3, and added a temporary setup
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
12 package_dir={'LaunchServices':'../../../Lib/plat-mac/Carbon'} |
|
2a0782cc151f
Made this module compatible with Python2.3, and added a temporary setup
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
13 ) |
