def get_ext_modules(): import Cython.Build ext_sobol = core.Extension( 'mafipy.math.qmc._sobol', ['mafipy/math/qmc/*.pyx'], ) extensions = [ ext_sobol, ] ext_modules = Cython.Build.cythonize(extensions) return ext_modules
'grpc/_adapter/_c/types/channel.c', 'grpc/_adapter/_c/types/server.c', ) _EXTENSION_INCLUDE_DIRECTORIES = ('.', ) _EXTENSION_LIBRARIES = ( 'grpc', 'gpr', ) if not "darwin" in sys.platform: _EXTENSION_LIBRARIES += ('rt', ) _C_EXTENSION_MODULE = _core.Extension( 'grpc._adapter._c', sources=list(_C_EXTENSION_SOURCES), include_dirs=list(_EXTENSION_INCLUDE_DIRECTORIES), libraries=list(_EXTENSION_LIBRARIES), ) _EXTENSION_MODULES = [_C_EXTENSION_MODULE] _PACKAGES = (setuptools.find_packages('.', exclude=['*._cython', '*._cython.*'])) _PACKAGE_DIRECTORIES = { '': '.', } _INSTALL_REQUIRES = ( 'enum34>=1.0.4', 'futures>=2.2.0', )
# setup script to compile jitter module; # written by M. Vallisneri (2015) # # use python setup.py build_ext --inplace to test import distutils.core as D import numpy as N from distutils.core import setup, Extension from distutils import sysconfig try: numpy_include = N.get_include() except AttributeError: numpy_include = N.get_numpy_include() # need to replace build_ext to build cython extension import Cython.Distutils extension = D.Extension('NX01_jitter', sources=['NX01_jitter.pyx'], include_dirs=[numpy_include], extra_compile_args=['-std=c99']) D.setup(name='NX01_jitter', ext_modules=[extension], cmdclass={"build_ext": Cython.Distutils.build_ext})
# extraCompilerArgs.append('-std=c99') # By default, distutils includes the -fno-strict-aliasing flag on *nix-GCC, # but not on MinGW-GCC. extraCompilerArgs.append('-fno-strict-aliasing') if not PLATFORM_IS_WINDOWS: includeDirs.append('/usr/include/vmware-vix/') libNames.append('vixAllProducts') extensionModules.append( dc.Extension( 'pyvix._vixmodule', sources=['_vixmodule.c'], libraries=libNames, include_dirs=includeDirs, library_dirs=libDirs, define_macros=macroDefs, extra_compile_args=extraCompilerArgs, extra_link_args=extraLinkerArgs, )) dc.setup( name='pyvix', version=pyvixVersion, author='David S. Rushby', author_email='*****@*****.**', # XXX: # url='http://', # description='', # long_description='', # license='',
setup(name="grr", version="0.3.0-7", description="GRR Rapid Response Framework", license="Apache License, Version 2.0", url="https://github.com/google/grr", install_requires=[], packages=GRRFindPackages(), package_dir={"grr": "../grr"}, package_data=GRRFindDataFiles(grr_all_files), entry_points={ "console_scripts": [ "grr_console = grr.lib.distro_entry:Console", "grr_config_updater = grr.lib.distro_entry:ConfigUpdater", "grr_server = grr.lib.distro_entry:GrrServer", "grr_end_to_end_tests = grr.lib.distro_entry:EndToEndTests", "grr_export = grr.lib.distro_entry:Export", "grr_client = grr.lib.distro_entry:Client", "grr_worker = grr.lib.distro_entry:Worker", "grr_admin_ui = grr.lib.distro_entry:AdminUI", "grr_fuse = grr.lib.distro_entry:GRRFuse", ] }, ext_modules=[ core.Extension( "_semantic", ["accelerated/accelerated.c"], ) ], cmdclass={"build_py": MyBuild})
# Copyright 2018 Anthony H Thomas and Arun Kumar # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import distutils.core as dst memlock_module = dst.Extension( '_memlock', sources = ['lock_mem.c'] ) dst.setup( name = '_memlock', version = '1.0', description = 'Lock some shared memory', ext_modules = [memlock_module] )
libraries = [] d = prober.probe() # Linux & FreeBSD require linking against the realtime libs # This causes an error on other platforms if "REALTIME_LIB_IS_NEEDED" in d: libraries.append("rt") ext_modules = [ duc.Extension( "posix_ipc", source_files, libraries=libraries, depends=[ "posix_ipc_module.c", "probe_results.h", ], # extra_compile_args=['-E'] ) ] duc.setup(name=name, version=VERSION, description=description, long_description=long_description, author=author, author_email=author_email, maintainer=maintainer, url=url, download_url=download_url,
py_ver = sys.version[:3].replace('.', '') libraries = ['cairo', 'python' + py_ver] include = ['src/py3cairo.h'] else: libraries = ['cairo'] include = ['src/pycairo.h'] cairo = dic.Extension( name='cairo._cairo', sources=[ 'src/cairomodule.c', 'src/context.c', 'src/font.c', 'src/matrix.c', 'src/path.c', 'src/pattern.c', 'src/surface.c', ], include_dirs=[ os.environ['PREFIX'] + '\\include', os.environ['LIBRARY_INC'] + '\\cairo' ], library_dirs=[os.environ['PREFIX'] + '\\Lib', os.environ['LIBRARY_LIB']], libraries=libraries, runtime_library_dirs=[]) dic.setup( name="pycairo", version=pycairo_version, description="python interface for cairo", ext_modules=[cairo], data_files=[
Description: Python bindings for cairo Version: %s Requires: cairo Cflags: -I${prefix}/include/pycairo Libs: """ % (sys.prefix, pycairo_version)) fo.close() cairo = dic.Extension( name='cairo._cairo', sources=[ 'cairo/cairomodule.c', 'cairo/pycairo-context.c', 'cairo/pycairo-font.c', 'cairo/pycairo-matrix.c', 'cairo/pycairo-path.c', 'cairo/pycairo-pattern.c', 'cairo/pycairo-surface.c', ], include_dirs=pkg_config_parse('--cflags-only-I', 'cairo'), library_dirs=pkg_config_parse('--libs-only-L', 'cairo'), libraries=pkg_config_parse('--libs-only-l', 'cairo'), runtime_library_dirs=runtime_library_dirs, ) dic.setup( name="pycairo", version=pycairo_version, description="python interface for cairo", packages=['cairo'], ext_modules=[cairo], data_files=[('include/pycairo', ['cairo/pycairo.h']),
] setup( name="grr", version="0.3.0-7", description="GRR Rapid Response Framework", license="Apache License, Version 2.0", url="https://github.com/google/grr", install_requires=[], packages=GRRFindPackages(), package_dir={"grr": "../grr"}, package_data=GRRFindDataFiles(grr_all_files), entry_points={ "console_scripts": [ "grr_console = grr.lib.distro_entry:Console", "grr_config_updater = grr.lib.distro_entry:ConfigUpdater", "grr_server = grr.lib.distro_entry:GrrServer", "grr_end_to_end_tests = grr.lib.distro_entry:EndToEndTests", "grr_export = grr.lib.distro_entry:Export", "grr_client = grr.lib.distro_entry:Client", "grr_worker = grr.lib.distro_entry:Worker", "grr_admin_ui = grr.lib.distro_entry:AdminUI", "grr_fuse = grr.lib.distro_entry:GRRFuse", ] }, ext_modules=[core.Extension( "_semantic", ["accelerated/accelerated.c"], )], cmdclass={"build_py": MyBuild})
"Programming Language :: Python :: 3", "Topic :: Utilities" ] license = "http://creativecommons.org/licenses/BSD/" keywords = "ipc inter-process communication semaphore shared memory shm message queue" prober.probe() extension = duc.Extension( "sysv_ipc", source_files, # extra_compile_args=['-E'] depends=[ "common.c", "common.h", "memory.c", "memory.h", "mq.c", "mq.h", "probe_results.h", "semaphore.c", "semaphore.h", "sysv_ipc_module.c", ], ) duc.setup(name=name, version=VERSION, description=description, long_description=long_description, author=author, author_email=author_email,
# POSIX threads library. Also link in Winsock 2 libraries # in case they are not otherwise being linked in. if sys.platform == "win32": if WITH_THREADS: include_dirs.extend([WIN32_PTHREAD_INCDIR]) library_dirs.extend([WIN32_PTHREAD_LIBDIR]) libraries.extend([WIN32_PTHREAD_LDLIB]) data_files = [('Lib/site-packages', [os.path.join(WIN32_PTHREAD_DLLDIR, '%s.dll'%WIN32_PTHREAD_LDLIB)])] libraries.extend(["ws2_32"]) module = core.Extension( name="_ose", sources=sources, define_macros=define_macros, include_dirs=include_dirs, library_dirs=library_dirs, libraries=libraries ) packages=['netrpc', 'zsirpc', 'netsvc', 'netsvc.xmlrpc', 'netsvc.json', 'netsvc.client', 'netsvc.cache' ] core.setup( name="netsvc", version=version, description="Python Wrappers For OSE C++ Class Library", author="Graham Dumpleton", author_email="*****@*****.**", url="http://ose.sourceforge.net", packages=packages,
core.setup( name="Subversion", version="0.0.0", description="bindings for Subversion libraries", author_email="*****@*****.**", url="http://subversion.tigris.org/", packages=['svn'], include_dirs=INC_DIRS, ext_package="svn", ext_modules=[ #core.Extension("_client", # ["svn_client.i"]), core.Extension( "_delta", ["../svn_delta.i"], libraries=['svn_delta', 'svn_swig_py', 'swigpy'], library_dirs=LIB_DIRS, ), core.Extension( "_fs", ["../svn_fs.i"], libraries=['svn_fs', 'svn_swig_py', 'swigpy'], library_dirs=LIB_DIRS, ), core.Extension( "_ra", ["../svn_ra.i"], libraries=['svn_ra', 'swigpy'], library_dirs=LIB_DIRS, ), core.Extension(