# -*- coding: UTF-8 -*- # Copyright (C) 2009 Juan David Ibáñez Palomar <*****@*****.**> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.pkg import setup if __name__ == '__main__': setup()
# -*- coding: UTF-8 -*- # Copyright (C) 2007-2009 J. David Ibanez <*****@*****.**> # Copyright (C) 2010 Hervé Cauwelier <*****@*****.**> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath from itools.pkg import setup if __name__ == '__main__': path = get_abspath('./') setup(path)
# -*- coding: UTF-8 -*- # Copyright (C) 2016 Sylvain Taverne <*****@*****.**> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath from itools.pkg import setup if __name__ == '__main__': path = get_abspath('') setup(path)
# DOC indexation try: flags = get_compile_flags('wv2-config --cflags --libs') except EnvironmentError: err = "[WARNING] wv2 not found, DOC indexation won't work" print >> stderr, err else: sources = ['itools/office/doctotext.cc'] extension = Extension('itools.office.doctotext', sources, **flags) ext_modules.append(extension) # libsoup wrapper line = 'pkg-config --cflags --libs gthread-2.0 pygobject-2.0 libsoup-2.4' try: flags = get_compile_flags(line) except EnvironmentError: err = "[WARNING] libsoup not found, itools.web won't work" print >> stderr, err else: for include in flags['include_dirs']: if include.endswith('/libsoup-2.4'): flags['include_dirs'].append('%s/libsoup' % include) break sources = ['itools/web/soup.c'] extension = Extension('itools.web.soup', sources, **flags) ext_modules.append(extension) # Ok setup(ext_modules=ext_modules)
# -*- coding: UTF-8 -*- # Copyright (C) 2009 Taverne Sylvain <*****@*****.**> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Import from itools from itools.core import get_abspath from itools.pkg import setup if __name__ == '__main__': setup(get_abspath(''))
# -*- coding: UTF-8 -*- # Copyright (C) 2009 Juan David Ibáñez Palomar <*****@*****.**> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath from itools.pkg import setup if __name__ == '__main__': setup(get_abspath('./'))