def __init__(self, ctx): ExtensionHelper.__init__(self, ctx) self._log = _log if ctx['PHP_VM'] == 'hhvm': self.composer_strategy = HHVMComposerStrategy(ctx) else: self.composer_strategy = PHPComposerStrategy(ctx)
def test_register_extension_methods(self): ExtensionHelper.register(__name__) module = sys.modules[__name__] assert hasattr(module, 'configure') assert hasattr(module, 'preprocess_commands') assert hasattr(module, 'service_commands') assert hasattr(module, 'service_environment') assert hasattr(module, 'compile') assert None is configure({}) assert {} == service_commands({}) assert {} == service_environment({}) assert () == preprocess_commands({})
def __init__(self, ctx): self._log = logging.getLogger(os.path.basename(os.path.dirname(__file__))) ExtensionHelper.__init__(self, ctx) self._compilationEnv = os.environ if 'IBM_DB_HOME' not in self._compilationEnv: self._compilationEnv['IBM_DB_HOME'] = '' if 'LD_LIBRARY_PATH' not in self._compilationEnv: self._compilationEnv['LD_LIBRARY_PATH'] = '' if 'PATH' not in self._compilationEnv: self._compilationEnv['PATH'] = '' self._ibmdbClidriverBaseDir = 'ibmdb_clidriver' self._phpBuildRootDpath = os.path.join(self._ctx['BUILD_DIR'], 'php') self._phpBuildIniFpath = os.path.join(self._phpBuildRootDpath, 'etc', 'php.ini')
def __init__(self, ctx): self._log = logging.getLogger( os.path.basename(os.path.dirname(__file__))) ExtensionHelper.__init__(self, ctx) self._log.info('Detected PHP Version ' + self._ctx['PHP_VERSION']) self._log.info('Using build pack directory ' + self._ctx['BP_DIR']) self._log.info('Using build directory ' + self._ctx['BUILD_DIR']) self._phpRoot = os.path.join(self._ctx['BUILD_DIR'], 'php') self._phpInstallDir = os.path.join(self._phpRoot, 'lib', 'php') self._phpBinDir = os.path.join(self._phpRoot, 'bin') self._phpBinPath = os.path.join(self._phpBinDir, 'php') self._phpIniDir = os.path.join(self._phpRoot, 'etc') self._phpIniPath = os.path.join(self._phpIniDir, 'php.ini') self._phpExtnDir = os.path.join(self._phpInstallDir, 'extensions') self._compilationEnv = os.environ self._phpizeDir = os.path.dirname(__file__)
def __init__(self, ctx): ExtensionHelper.__init__(self, ctx) self._log = _log self._init_composer_paths()
def __init__(self, ctx): ExtensionHelper.__init__(self, ctx) self._log = _log