MCPcopy
hub / github.com/geldata/gel / initialize_options

Method initialize_options

setup.py:771–791  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

769 ]
770
771 def initialize_options(self):
772 # initialize_options() may be called multiple times on the
773 # same command object, so make sure not to override previously
774 # set options.
775 if getattr(self, '_initialized', False):
776 return
777
778 super(build_ext, self).initialize_options()
779
780 if os.environ.get('EDGEDB_DEBUG'):
781 self.cython_always = True
782 self.cython_annotate = True
783 self.cython_extra_directives = "linetrace=True"
784 self.define = 'PG_DEBUG,CYTHON_TRACE,CYTHON_TRACE_NOGIL'
785 self.debug = True
786 else:
787 self.cython_always = False
788 self.cython_annotate = None
789 self.cython_extra_directives = None
790 self.debug = False
791 self.build_mode = os.environ.get('BUILD_EXT_MODE', 'both')
792
793 def finalize_options(self) -> None:
794 # finalize_options() may be called multiple times on the

Callers

nothing calls this directly

Calls 2

initialize_optionsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected