#!/usr/bin/env python3 # # $Id: setup.py,v 1.32 2010/10/17 15:47:21 ghantoos Exp $ # # Copyright (C) 2008-2009 Ignace Mouzannar (ghantoos) # # This file is part of lshell # # 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 . from distutils.core import setup from edupals.i18n import poinstaller import sys import os if __name__ == '__main__': pinstaller = poinstaller.PoInstaller('translations','lliurex-java-panel','') pinstaller.build() polist = pinstaller.setup_install() listdir_banners=map(lambda x:os.path.join('lliurex-java-panel','data-files','banners',x),os.listdir('lliurex-java-panel/data-files/banners')) listdir_supportedjavas=map(lambda x:os.path.join('lliurex-java-panel','data-files','supported-javas',x),os.listdir('lliurex-java-panel/data-files/supported-javas')) listdir_fonts=map(lambda x:os.path.join('lliurex-java-panel','data-files','fonts',x),os.listdir('lliurex-java-panel/data-files/fonts')) setup(name='lliurex-java-panel', version='0.1', description='LliureX Java Panel', long_description="""""", author='Lliurex Team', author_email='juapesai@hotmail.com', maintainer='Juan Ramon Pelegrina', maintainer_email='juapesai@hotmail.com', keywords=['software','server','sites'], url='http://www.lliurex.net', license='GPL', platforms='UNIX', packages = ['lliurexjavapanel'], package_dir = {'lliurexjavapanel':'lliurex-java-panel/python3-lliurexjavapanel'}, package_data = {'lliurexjavapanel':['rsrc/*']}, data_files = [('sbin',['lliurex-java-panel/lliurex-java-panel']), ('share/lliurex-java-panel/banners',listdir_banners), ('share/lliurex-java-panel/',['lliurex-java-panel/data-files/swing.properties']), ('share/fonts/',listdir_fonts), ('share/lliurex-java-panel/supported-javas',listdir_supportedjavas), ] + polist , classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console' 'Intended Audience :: End Users', 'License :: OSI Approved :: GNU General Public License v3', 'Operating System :: POSIX', 'Programming Language :: Python', 'Topic :: Software', 'Topic :: Install apps', ], ) pinstaller.clean()