Python distutils.command.build_ext.build_ext.build_extension() Examples
The following are 18
code examples of distutils.command.build_ext.build_ext.build_extension().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
distutils.command.build_ext.build_ext
, or try the search function
.
Example #1
Source File: setup.py From magnitude with MIT License | 6 votes |
def build_extension(self, ext): if self.amalgamation: ext.define_macros += [ ("SQLITE_ENABLE_FTS3", "1"), ("SQLITE_ENABLE_FTS3_PARENTHESIS", "1"), ("SQLITE_ENABLE_FTS4", "1"), ("SQLITE_ENABLE_RTREE", "1"), ("SQLITE_MAX_COLUMN", "32767"), # PLASTICITY ("SQLITE_MAX_VARIABLE_NUMBER", "99999")] # PLASTICITY ext.sources.append("sqlite3.c") try: raise Exception("skip") # PLASTICITY ext.include_dirs = self._pkgconfig_include_dirs("sqlite3") ext.library_dirs = self._pkgconfig_library_dirs("sqlite3") except: # Plasticity pass # no pkg_config installed build_ext.build_extension(self, ext)
Example #2
Source File: setup.py From aredis with MIT License | 5 votes |
def build_extension(self, ext): name = ext.name try: build_ext.build_extension(self, ext) except Exception: e = sys.exc_info()[1] sys.stdout.write('%s\n' % str(e)) warnings.warn(self.warning_message % ("The %s extension " "module" % (name,), "The output above " "this warning shows how " "the compilation " "failed."))
Example #3
Source File: basesetup.py From msmexplorer with MIT License | 5 votes |
def build_extension(self, ext): if isinstance(ext, StaticLibrary): self.build_static_extension(ext) else: _build_ext.build_extension(self, ext)
Example #4
Source File: setup.py From backpack with MIT License | 5 votes |
def build_extension(self, ext): try: build_ext.build_extension(self, ext) except build_ext_errors: raise BuildExtFailed()
Example #5
Source File: setup.py From sqlalchemy with MIT License | 5 votes |
def build_extension(self, ext): try: build_ext.build_extension(self, ext) except ext_errors: raise BuildFailed() except ValueError: # this can happen on Windows 64 bit, see Python issue 7511 if "'path'" in str(sys.exc_info()[1]): # works with both py 2/3 raise BuildFailed() raise
Example #6
Source File: setup.py From supersqlite with MIT License | 5 votes |
def build_extension(self, ext): if self.amalgamation: ext.sources.append("sqlite3.c") ext.sources.append("icu.cpp") # PLASTICITY try: raise Exception("skip") # PLASTICITY ext.include_dirs = self._pkgconfig_include_dirs("sqlite3") ext.library_dirs = self._pkgconfig_library_dirs("sqlite3") except: # Plasticity pass # no pkg_config installed build_ext.build_extension(self, ext)
Example #7
Source File: setup.py From aiokafka with Apache License 2.0 | 5 votes |
def build_extension(self, ext): try: build_ext.build_extension(self, ext) except (CCompilerError, DistutilsExecError, DistutilsPlatformError, ValueError): raise BuildFailed()
Example #8
Source File: setup.py From apm-agent-python with BSD 3-Clause "New" or "Revised" License | 5 votes |
def build_extension(self, ext): try: build_ext.build_extension(self, ext) except build_ext_errors: raise BuildExtFailed()
Example #9
Source File: build.py From pendulum with MIT License | 5 votes |
def build_extension(self, ext): try: build_ext.build_extension(self, ext) except (CCompilerError, DistutilsExecError, DistutilsPlatformError, ValueError): print("************************************************************") print("Cannot compile C accelerator module, use pure python version") print("************************************************************")
Example #10
Source File: basesetup.py From mdentropy with MIT License | 5 votes |
def build_extension(self, ext): if isinstance(ext, StaticLibrary): self.build_static_extension(ext) else: _build_ext.build_extension(self, ext)
Example #11
Source File: basesetup.py From perses with MIT License | 5 votes |
def build_extension(self, ext): if isinstance(ext, StaticLibrary): self.build_static_extension(ext) else: _build_ext.build_extension(self, ext)
Example #12
Source File: setup.py From influxgraph with Apache License 2.0 | 5 votes |
def build_extension(self, ext): try: build_ext.build_extension(self, ext) except ext_errors: raise BuildFailed()
Example #13
Source File: setup.py From ms_deisotope with Apache License 2.0 | 5 votes |
def build_extension(self, ext): try: build_ext.build_extension(self, ext) except ext_errors: traceback.print_exc() raise BuildFailed() except ValueError: # this can happen on Windows 64 bit, see Python issue 7511 traceback.print_exc() if "'path'" in str(sys.exc_info()[1]): # works with both py 2/3 raise BuildFailed() raise
Example #14
Source File: setup.py From aiokafka with Apache License 2.0 | 5 votes |
def build_extension(self, ext): try: build_ext.build_extension(self, ext) except (CCompilerError, DistutilsExecError, DistutilsPlatformError, ValueError): raise BuildFailed()
Example #15
Source File: setup.py From poetry with MIT License | 5 votes |
def build_extension(self, ext): try: build_ext.build_extension(self, ext) except ext_errors: raise BuildFailed() except ValueError: # this can happen on Windows 64 bit, see Python issue 7511 if "'path'" in str(sys.exc_info()[1]): # works with both py 2/3 raise BuildFailed() raise
Example #16
Source File: setup.py From numcodecs with MIT License | 5 votes |
def build_extension(self, ext): try: build_ext.build_extension(self, ext) except ext_errors as e: error(e) raise BuildFailed()
Example #17
Source File: setup.py From aiochclient with MIT License | 5 votes |
def build_extension(self, ext): try: build_ext.build_extension(self, ext) except (CCompilerError, DistutilsExecError, DistutilsPlatformError, ValueError): raise BuildFailed()
Example #18
Source File: basesetup.py From assaytools with GNU Lesser General Public License v2.1 | 5 votes |
def build_extension(self, ext): if isinstance(ext, StaticLibrary): self.build_static_extension(ext) else: _build_ext.build_extension(self, ext)