All Samples(850) | Call(387) | Derive(13) | Import(450)
Extension that uses '.c' files in place of '.pyx' files
src/p/y/python-readline-HEAD/setup.py python-readline(Download)
import sys import distutils from setuptools import setup, Extension if sys.platform == 'win32':
platforms=['MacOS X', 'Posix'],
include_package_data=True,
ext_modules=[
Extension(name="readline",
sources=["Modules/%s.x/readline.c" % (sys.version_info[0],)],
include_dirs=['.'],
define_macros=DEFINE_MACROS,
src/p/y/pycryptopp-0.5.25/setup.py pycryptopp(Download)
egg = os.path.realpath(glob.glob('darcsver-*.egg')[0])
sys.path.insert(0, egg)
from setuptools import Extension, find_packages, setup
# ECDSA isn't yet supported, but it can be turned on by testing purposes. But
# you'll have to comment-in some lines in the C++ code to make it work. Also
srcs.append('_testdoubleloadmodule.cpp', )
ext_modules.append(
Extension('pycryptopp._pycryptopp', extra_srcs + srcs, include_dirs=include_dirs, library_dirs=library_dirs, libraries=libraries, extra_link_args=extra_link_args, extra_compile_args=extra_compile_args, define_macros=define_macros, undef_macros=undef_macros)
)
if TEST_DOUBLE_LOAD:
ext_modules.append(
Extension('_testdoubleload', extra_srcs + srcs, include_dirs=include_dirs, library_dirs=library_dirs, libraries=libraries, extra_link_args=extra_link_args, extra_compile_args=extra_compile_args, define_macros=define_macros, undef_macros=undef_macros)
src/r/e/readline-6.1.0/setup.py readline(Download)
import sys import distutils from setuptools import setup, Extension here = os.path.abspath(os.path.dirname(__file__))
platforms=['MacOS X', 'Posix'],
include_package_data=True,
ext_modules=[
Extension(name="readline",
sources=["Modules/%s.x/readline.c" % (sys.version_info[0],)],
include_dirs=['.'],
define_macros=DEFINE_MACROS,
src/p/y/pylzma-HEAD/setup.py pylzma(Download)
from distutils.command.build_ext import build_ext as _build_ext
try:
from setuptools import setup, Extension
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, Extension
c_files += [os.path.normpath(os.path.join('.', x)) for x in lzma_files]
extens = [
Extension('pylzma', c_files, include_dirs=include_dirs, libraries=libraries,
library_dirs=library_dirs, define_macros=macros, extra_compile_args=compile_args,
extra_link_args=link_args),
]
src/v/i/visionegg-1.2.1/setup.py visionegg(Download)
'Topic :: Software Development :: Libraries',
]
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
from distutils.errors import CCompilerError
if sys.platform == 'darwin':
darwin_maxpriority_sources = ['VisionEgg/darwin_maxpriority.pyx']
ext_modules.append(Extension(name='darwin_maxpriority',
sources=darwin_maxpriority_sources))
# VBL synchronization stuff
ext_modules.append(Extension(name='_darwin_sync_swap',
sources=['VisionEgg/_darwin_sync_swap.m'],
extra_link_args=['-framework','OpenGL']))
# getfresh
ext_modules.append(Extension(name='_darwin_getrefresh',
elif sys.platform == 'win32':
ext_modules.append(Extension(name='_win32_maxpriority',
sources=[os.path.join('VisionEgg','win32_maxpriority.c'),
os.path.join('VisionEgg','win32_maxpriority_wrap.c')]))
ext_modules.append(Extension(name='_win32_getrefresh',
sources=[os.path.join('VisionEgg','win32_getrefresh.c'),
os.path.join('VisionEgg','win32_getrefresh_wrap.c')],
libraries=['User32'],
))
vretrace_source = 'win32_vretrace.pyx'
ext_modules.append(Extension(name='win32_vretrace',
))
elif sys.platform.startswith('linux') or sys.platform.startswith('irix'):
ext_modules.append(Extension(name='_posix_maxpriority',
sources=['VisionEgg/posix_maxpriority.c',
'VisionEgg/posix_maxpriority_wrap.c']))
if sys.platform.startswith('linux'):
ext_modules.append(Extension(name='_raw_lpt_linux',sources=['VisionEgg/_raw_lpt_linux.c']))
else: # sys.platform.startswith('irix')
ext_modules.append(Extension(name='_raw_plp_irix',sources=['VisionEgg/_raw_plp_irix.c']))
if sys.platform == 'darwin' or sys.platform== 'win32':
# QuickTime support
ext_modules.append(Extension(name='_gl_qt',
))
# _vegl
ext_modules.append(Extension(name='_vegl',
sources=['VisionEgg/_vegl.pyx',],
libraries=gl_libraries,
extra_link_args=gl_extra_link_args
))
# C extensions for drawing GL stuff
include_prefix = os.path.join( sys.prefix, 'include', 'python%s'%sys.version[:3] )
numpy_include_dir = numpy.get_include()
ext_modules.append(Extension(name='_draw_in_c',
src/p/y/python-hotsync-HEAD/trunk/setup.py python-hotsync(Download)
from setuptools import setup, find_packages, Extension
#from distutils.core import setup, Extension
MAJOR_VERSION='1'
MINOR_VERSION='0'
Version = MAJOR_VERSION+'.'+MINOR_VERSION
condmgr = Extension('pcondmgr',
library_dirs = ['c:\CDK403\C++\Lib'],
sources = ['src\pcondmgr.cpp'])
hslog = Extension('hslog',
define_macros = [('MAJOR_VERSION', MAJOR_VERSION),
('MINOR_VERSION', MINOR_VERSION)],
include_dirs = ['c:\CDK403\C++\Include'],
libraries = ['condmgr'],
library_dirs = ['c:\CDK403\C++\Lib'],
sources = ['src\hslog.cpp'])
syncmgr = Extension('syncmgr',
src/p/y/pylzma-0.4.2/setup.py pylzma(Download)
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, Extension
class UnsupportedPlatformWarning(Warning):
pass
c_files += [os.path.normpath(os.path.join('.', x)) for x in lzma_files]
extens = [
Extension('pylzma', c_files, include_dirs=include_dirs, libraries=libraries,
library_dirs=library_dirs, define_macros=macros, extra_compile_args=compile_args,
extra_link_args=link_args),
]
src/p/y/python-hotsync-HEAD/setup.py python-hotsync(Download)
from setuptools import setup, find_packages, Extension
#from distutils.core import setup, Extension
MAJOR_VERSION='1'
MINOR_VERSION='0'
Version = MAJOR_VERSION+'.'+MINOR_VERSION
condmgr = Extension('pcondmgr',
library_dirs = ['c:\CDK403\C++\Lib'],
sources = ['src\pcondmgr.cpp'])
hslog = Extension('hslog',
define_macros = [('MAJOR_VERSION', MAJOR_VERSION),
('MINOR_VERSION', MINOR_VERSION)],
include_dirs = ['c:\CDK403\C++\Include'],
libraries = ['condmgr'],
library_dirs = ['c:\CDK403\C++\Lib'],
sources = ['src\hslog.cpp'])
syncmgr = Extension('syncmgr',
src/p/y/python-applescript-HEAD/setup.py python-applescript(Download)
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, Extension
import sys, glob
sys.path.append('python')
pa_libdir = None
pa_link_args = ['-framework', 'Carbon']
module = Extension('applescript.applescript',
sources = pa_src,
depends = pa_inc,
include_dirs = pa_incdir,
src/r/l/rl-HEAD/setup.py rl(Download)
# On Linux, install libreadline5-dev (or equivalent) before attempting # to build rl. On Mac OS X, make sure you have Xcode Tools installed. import sys import os from setuptools import setup, find_packages, Extension
rl_readline = \
Extension(name='rl.readline',
sources=sources,
define_macros=define_macros,
include_dirs=include_dirs,
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next