def install_step(self): """Custom install procedure for EggLib: first build/install C++ library, then build Python library.""" # build/install C++ library cpp_subdir = os.path.join(self.builddir, 'egglib-cpp-%s' % self.version) try: os.chdir(cpp_subdir) except OSError as err: raise EasyBuildError("Failed to move to: %s", err) ConfigureMake.configure_step(self) ConfigureMake.build_step(self) ConfigureMake.install_step(self) # header files and libraries must be found when building Python library for varname, subdir in [('CPATH', 'include'), ('LIBRARY_PATH', 'lib')]: env.setvar(varname, '%s:%s' % (os.path.join(self.installdir, subdir), os.environ.get(varname, ''))) # build/install Python package py_subdir = os.path.join(self.builddir, 'egglib-py-%s' % self.version) try: os.chdir(py_subdir) except OSError as err: raise EasyBuildError("Failed to move to: %s", err) PythonPackage.build_step(self) self.cfg.update('installopts', "--install-lib %s" % os.path.join(self.installdir, self.pylibdir)) self.cfg.update('installopts', "--install-scripts %s" % os.path.join(self.installdir, 'bin')) PythonPackage.install_step(self)
def install_step(self): """Install with cmake install and pip install""" build_dir = change_dir(self.cfg['start_dir']) PythonPackage.install_step(self) # Reset installopts (set by PythonPackage) self.cfg['installopts'] = '' change_dir(build_dir) CMakeMake.install_step(self)
def install_step(self): """ Install libxml2 and install python bindings """ ConfigureMake.install_step(self) try: os.chdir('python') PythonPackage.install_step(self) os.chdir('..') except OSError, err: self.log.error("Failed to install libxml2 Python bindings: %s" % err)
def install_step(self): """ Install libxml2 and install python bindings """ ConfigureMake.install_step(self) try: os.chdir('python') PythonPackage.install_step(self) os.chdir('..') except OSError, err: raise EasyBuildError( "Failed to install libxml2 Python bindings: %s", err)
def install_step(self): """ Install libxml2 and install python bindings """ ConfigureMake.install_step(self) try: # We can only do the python bindings after the initial installation # since setup.py expects to find the include dir in the installation path # and that only exists after installation os.chdir('python') PythonPackage.configure_step(self) # set cflags to point to include folder for the compilation step to succeed env.setvar('CFLAGS', "-I../include") PythonPackage.build_step(self) PythonPackage.install_step(self) os.chdir('..') except OSError, err: raise EasyBuildError("Failed to install libxml2 Python bindings: %s", err)
def install_step(self): """ Install libxml2 and install python bindings """ ConfigureMake.install_step(self) try: # We can only do the python bindings after the initial installation # since setup.py expects to find the include dir in the installation path # and that only exists after installation os.chdir('python') PythonPackage.configure_step(self) # set cflags to point to include folder for the compilation step to succeed env.setvar('CFLAGS', "-I../include") PythonPackage.build_step(self) PythonPackage.install_step(self) os.chdir('..') except OSError, err: raise EasyBuildError("Failed to install libxml2 Python bindings: %s", err)
def install_step(self): """ Custom install step for libxml2; also build Python bindings ourselves if desired (only for older libxml2 versions """ ConfigureMake.install_step(self) if self.with_python_bindings and LooseVersion(self.version) < LooseVersion('2.9.2'): try: # We can only do the Python bindings after the initial installation # since setup.py expects to find the include dir in the installation path # and that only exists after installation os.chdir('python') PythonPackage.configure_step(self) # set cflags to point to include folder for the compilation step to succeed env.setvar('CFLAGS', "-I../include") PythonPackage.build_step(self) PythonPackage.install_step(self) os.chdir('..') except OSError as err: raise EasyBuildError("Failed to install libxml2 Python bindings: %s", err)
def install_step(self): """ Custom install step for libxml2; also build Python bindings ourselves if desired (only for older libxml2 versions """ ConfigureMake.install_step(self) if self.with_python_bindings and LooseVersion(self.version) < LooseVersion('2.9.2'): try: # We can only do the Python bindings after the initial installation # since setup.py expects to find the include dir in the installation path # and that only exists after installation os.chdir('python') PythonPackage.configure_step(self) # set cflags to point to include folder for the compilation step to succeed env.setvar('CFLAGS', "-I../include") PythonPackage.build_step(self) PythonPackage.install_step(self) os.chdir('..') except OSError as err: raise EasyBuildError("Failed to install libxml2 Python bindings: %s", err)
def install_step(self): """Custom install procedure for EggLib: first build/install C++ library, then build Python library.""" # build/install C++ library cpp_subdir = os.path.join(self.builddir, 'egglib-cpp-%s' % self.version) try: os.chdir(cpp_subdir) except OSError as err: raise EasyBuildError("Failed to move to: %s", err) ConfigureMake.configure_step(self) ConfigureMake.build_step(self) ConfigureMake.install_step(self) # header files and libraries must be found when building Python library for varname, subdir in [('CPATH', 'include'), ('LIBRARY_PATH', 'lib')]: env.setvar( varname, '%s:%s' % (os.path.join( self.installdir, subdir), os.environ.get(varname, ''))) # build/install Python package py_subdir = os.path.join(self.builddir, 'egglib-py-%s' % self.version) try: os.chdir(py_subdir) except OSError as err: raise EasyBuildError("Failed to move to: %s", err) PythonPackage.build_step(self) self.cfg.update( 'installopts', "--install-lib %s" % os.path.join(self.installdir, self.pylibdir)) self.cfg.update( 'installopts', "--install-scripts %s" % os.path.join(self.installdir, 'bin')) PythonPackage.install_step(self)
def install_step(self): files_to_copy = self.cfg.get('files_to_copy', []) self.log.info("Starting install_step with files_to_copy: %s" % files_to_copy) PythonPackage.install_step(self) return MakeCp.install_step(self)
for varname, subdir in [('CPATH', 'include'), ('LIBRARY_PATH', 'lib')]: env.setvar( varname, '%s:%s' % (os.path.join( self.installdir, subdir), os.environ.get(varname, ''))) # build/install Python package py_subdir = os.path.join(self.builddir, 'egglib-py-%s' % self.version) try: os.chdir(py_subdir) except OSError, err: raise EasyBuildError("Failed to move to: %s", err) PythonPackage.build_step(self) self.cfg.update( 'installopts', "--install-lib %s" % os.path.join(self.installdir, self.pylibdir)) self.cfg.update( 'installopts', "--install-scripts %s" % os.path.join(self.installdir, 'bin')) PythonPackage.install_step(self) def sanity_check_step(self): """Custom sanity check for EggLib.""" custom_paths = { 'files': ['bin/egglib', 'lib/libegglib-cpp.a'], 'dirs': ['include/egglib-cpp', self.pylibdir], } super(EB_EggLib, self).sanity_check_step(custom_paths=custom_paths)
ConfigureMake.configure_step(self) ConfigureMake.build_step(self) ConfigureMake.install_step(self) # header files and libraries must be found when building Python library for varname, subdir in [('CPATH', 'include'), ('LIBRARY_PATH', 'lib')]: env.setvar(varname, '%s:%s' % (os.path.join(self.installdir, subdir), os.environ.get(varname, ''))) # build/install Python package py_subdir = os.path.join(self.builddir, 'egglib-py-%s' % self.version) try: os.chdir(py_subdir) except OSError, err: raise EasyBuildError("Failed to move to: %s", err) PythonPackage.build_step(self) self.cfg.update('installopts', "--install-lib %s" % os.path.join(self.installdir, self.pylibdir)) self.cfg.update('installopts', "--install-scripts %s" % os.path.join(self.installdir, 'bin')) PythonPackage.install_step(self) def sanity_check_step(self): """Custom sanity check for EggLib.""" custom_paths = { 'files': ['bin/egglib', 'lib/libegglib-cpp.a'], 'dirs': ['include/egglib-cpp', self.pylibdir], } super(EB_EggLib, self).sanity_check_step(custom_paths=custom_paths)