Example #1
0
 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 __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)
Example #3
0
    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')
Example #4
0
    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__)
Example #5
0
 def __init__(self, ctx):
     ExtensionHelper.__init__(self, ctx)
     self._log = _log
     self._init_composer_paths()
Example #6
0
 def __init__(self, ctx):
     ExtensionHelper.__init__(self, ctx)
     self._log = _log
Example #7
0
 def __init__(self, ctx):
     ExtensionHelper.__init__(self, ctx)
     self._log = _log
     self._init_composer_paths()
Example #8
0
 def __init__(self, ctx):
     ExtensionHelper.__init__(self, ctx)
     self._log = _log