本文整理汇总了Python中pyobjc_setup.setup函数的典型用法代码示例。如果您正苦于以下问题:Python setup函数的具体用法?Python setup怎么用?Python setup使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setup函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setup
from pyobjc_setup import setup, Extension
import os
VERSION="3.2a1"
setup(
name='pyobjc-framework-AddressBook',
version=VERSION,
description = "Wrappers for the framework AddressBook on Mac OS X",
long_description=__doc__,
packages = [ "AddressBook" ],
setup_requires = [
'pyobjc-core>=' + VERSION,
],
install_requires = [
'pyobjc-core>=' + VERSION,
'pyobjc-framework-Cocoa>=' + VERSION,
],
ext_modules = [
Extension("AddressBook._AddressBook",
[ "Modules/_AddressBook.m" ],
extra_link_args=["-framework", "AddressBook"],
depends=[
os.path.join('Modules', fn)
for fn in os.listdir('Modules')
if fn.startswith('_AddressBook')
]
),
],
)
示例2: and
'''
Wrappers for the "AddressBook" framework on MacOS X. The Address Book is
a centralized database for contact and other information for people. Appliations
that make use of the AddressBook framework all use the same database.
These wrappers don't include documentation, please check Apple's documention
for information on how to use this framework and PyObjC's documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworks
'''
from pyobjc_setup import setup
setup(
name='pyobjc-framework-AddressBook',
version="2.3.2a0",
description = "Wrappers for the framework AddressBook on Mac OS X",
packages = [ "AddressBook" ],
install_requires = [
'pyobjc-core>=2.3.2a0',
'pyobjc-framework-Cocoa>=2.3.2a0',
],
)
示例3: and
'''
Wrappers for the "QTKit" framework on MacOSX. QTKit is an modern,
object-oriented framework for working with QuickTime media in Cocoa
applications, and is a replacement for the older Carbon-based Quicktime
framework.
These wrappers don't include documentation, please check Apple's documention
for information on how to use this framework and PyObjC's documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworks
'''
from pyobjc_setup import setup
setup(
name='pyobjc-framework-QTKit',
version="2.5.1",
description = "Wrappers for the framework QTKit on Mac OS X",
packages = [ "QTKit" ],
setup_requires = [
'pyobjc-core>=2.5.1',
],
install_requires = [
'pyobjc-core>=2.5.1',
'pyobjc-framework-Cocoa>=2.5.1',
'pyobjc-framework-Quartz>=2.5.1',
],
)
示例4: and
framework provides facilities for monitoring and debugging exceptional
conditions in Cocoa programs.
PyObjC also provides low-level debugging utilities beyond the core
ExceptionHandling framework in the module ``PyObjCTools.Debugging``.
These wrappers don't include documentation, please check Apple's documention
for information on how to use this framework and PyObjC's documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworks
'''
from pyobjc_setup import setup
VERSION="3.2a1"
setup(
name='pyobjc-framework-ExceptionHandling',
version=VERSION,
description = "Wrappers for the framework ExceptionHandling on Mac OS X",
long_description=__doc__,
packages = [ "PyObjCTools", "ExceptionHandling" ],
namespace_packages = [ "PyObjCTools" ],
setup_requires = [
'pyobjc-core>=' + VERSION,
],
install_requires = [
'pyobjc-core>=' + VERSION,
'pyobjc-framework-Cocoa>=' + VERSION,
],
)
示例5: and
program is not running al the time.
These wrappers don't include documentation, please check Apple's documention
for information on how to use this framework and PyObjC's documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworks
'''
from pyobjc_setup import setup, Extension
setup(
min_os_level='10.5',
name='pyobjc-framework-FSEvents',
version="2.5.1",
description = "Wrappers for the framework FSEvents on Mac OS X",
packages = [ "FSEvents" ],
# setup_requires doesn't like git links, so we just have to
# pip install these first:
#setup_requires = [
# 'https://github.com/Khan/pyobjc-core/tarball/master',
#],
dependency_links = [
'https://github.com/Khan/pyobjc-core/tarball/master',
'https://github.com/Khan/pyobjc-framework-Cocoa/tarball/master',
],
ext_modules = [
Extension("FSEvents._callbacks",
[ "Modules/_callbacks.m" ],
),
],
)
示例6: setup
setup(
name='pyobjc-framework-Quartz',
version="2.5.1",
description = "Wrappers for the Quartz frameworks on Mac OS X",
packages = [ "Quartz" ] + subpackages,
setup_requires = [
'pyobjc-core>=2.5.1',
],
install_requires = [
'pyobjc-core>=2.5.1',
'pyobjc-framework-Cocoa>=2.5.1',
],
ext_modules = [
# CoreVideo
Extension('Quartz.CoreVideo._CVPixelBuffer',
[ 'Modules/_CVPixelBuffer.m' ]),
# CoreGraphics
Extension('Quartz.CoreGraphics._inlines',
[ 'Modules/_CoreGraphics_inlines.m' ]),
Extension('Quartz.CoreGraphics._callbacks',
[ 'Modules/_callbacks.m' ]),
Extension('Quartz.CoreGraphics._doubleindirect',
[ 'Modules/_doubleindirect.m' ]),
Extension('Quartz.CoreGraphics._sortandmap',
[ 'Modules/_sortandmap.m' ]),
Extension('Quartz.CoreGraphics._coregraphics',
[ 'Modules/_coregraphics.m' ], extra_link_args=["-framework", "ApplicationServices"]),
],
)
示例7: setup
setup(
name='pyobjc-framework-Cocoa',
version="2.5.1",
description = "Wrappers for the Cocoa frameworks on Mac OS X",
packages = [ "Cocoa", "CoreFoundation", "Foundation", "AppKit", "PyObjCTools" ],
namespace_packages = ['PyObjCTools'],
dependency_links = [
'https://github.com/Khan/pyobjc-core/tarball/master',
],
ext_modules = [
# CoreFoundation
Extension('CoreFoundation._inlines',
[ 'Modules/_CoreFoundation_inlines.m' ],
extra_link_args=['-framework', 'CoreFoundation']),
Extension('CoreFoundation._CoreFoundation',
[ 'Modules/_CoreFoundation.m' ],
extra_link_args=['-framework', 'CoreFoundation'],
depends=[
os.path.join('Modules', fn)
for fn in os.listdir('Modules')
if fn.startswith('_CoreFoundation') ]),
# Foundation
Extension('Foundation._inlines',
[ 'Modules/_Foundation_inlines.m' ],
extra_link_args=['-framework', 'Foundation']),
Extension('Foundation._Foundation',
[ 'Modules/_Foundation.m' ],
extra_link_args=['-framework', 'Foundation'],
depends=[
os.path.join('Modules', fn)
for fn in os.listdir('Modules')
if fn.startswith('_Foundation') ]),
# AppKit
Extension("AppKit._inlines",
[ "Modules/_AppKit_inlines.m" ],
extra_link_args=["-framework", "AppKit"]),
Extension("AppKit._AppKit",
[ "Modules/_AppKit.m" ],
extra_link_args=["-framework", "AppKit"],
depends=[
os.path.join('Modules', fn)
for fn in os.listdir('Modules')
if fn.startswith('_AppKit') ]),
#
# Test support
#
Extension("PyObjCTest.testhelper",
[ "Modules/testhelper.m"],
extra_link_args=["-framework", "Foundation"]),
],
)
示例8: open
* Register information about the kinds of documents an application
can open (UTI's)
* Obtain information for showing a document (display name, icon, ...)
* Maintain and update the contents of the Recent Items menu.
These wrappers don't include documentation, please check Apple's documention
for information on how to use this framework and PyObjC's documentation
for general tips and tricks regarding the translation between Python
and (Objective-)C frameworks
NOTE: This wrapper is not complete, this will change in a future version.
'''
from pyobjc_setup import setup
setup(
name='pyobjc-framework-LaunchServices',
version="2.5.1",
description = "Wrappers for the framework LaunchServices on Mac OS X",
packages = [ "LaunchServices" ],
setup_requires = [
'pyobjc-core>=2.5.1',
],
install_requires = [
'pyobjc-core>=2.5.1',
'pyobjc-framework-Cocoa>=2.5.1',
],
)