def run(self): global uwsgi_compiled if not uwsgi_compiled: conf = uc.uConf(get_profile()) patch_bin_path(self, conf) uc.build_uwsgi(conf) uwsgi_compiled = True
def uwsgi_build(self): uwsgiconfig.build_uwsgi(self.uwsgi_config) # XXX: merge uwsgi_setup (see other comments) for ext in self.extensions: if ext.name == self.UWSGI_NAME: ext.sources = [s + '.c' for s in self.uwsgi_config.gcc_list] ext.library_dirs = self.uwsgi_config.include_path[:] ext.libraries = list() ext.extra_compile_args = list() for x in uwsgiconfig.uniq_warnings( self.uwsgi_config.ldflags + self.uwsgi_config.libs, ): for y in shlex.split(x): if y.startswith('-l'): ext.libraries.append(y[2:]) elif y.startswith('-L'): ext.library_dirs.append(y[2:]) for x in self.uwsgi_config.cflags: for y in shlex.split(x): if y: ext.extra_compile_args.append(y)
def uwsgi_build(self): uwsgiconfig.build_uwsgi(self.uwsgi_config) #XXX: merge uwsgi_setup (see other comments) for ext in self.extensions: if ext.name == self.UWSGI_NAME: ext.sources = [s + '.c' for s in self.uwsgi_config.gcc_list] ext.library_dirs = self.uwsgi_config.include_path[:] ext.libraries = list() ext.extra_compile_args = list() for x in uwsgiconfig.uniq_warnings( self.uwsgi_config.ldflags + self.uwsgi_config.libs, ): for y in shlex.split(x): if y.startswith('-l'): ext.libraries.append(y[2:]) elif y.startswith('-L'): ext.library_dirs.append(y[2:]) for x in self.uwsgi_config.cflags: for y in shlex.split(x): if y: ext.extra_compile_args.append(y)
def run(self): uc.parse_vars() uc.build_uwsgi(sys.prefix + '/bin/' + uc.UWSGI_BIN_NAME)