|
|
|
@ -22,11 +22,22 @@ from distutils.core import setup
|
|
|
|
|
from distutils.command.build_scripts import build_scripts
|
|
|
|
|
from distutils.command.install_scripts import install_scripts
|
|
|
|
|
|
|
|
|
|
__version__ = "3.1.9"
|
|
|
|
|
__version__ = "3.2.2"
|
|
|
|
|
__app__ = "calculate-lib"
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
from portage.const import EPREFIX
|
|
|
|
|
except ImportError:
|
|
|
|
|
EPREFIX=''
|
|
|
|
|
|
|
|
|
|
module_name = "calculate.lib"
|
|
|
|
|
|
|
|
|
|
packages = [
|
|
|
|
|
str('.'.join(root.split(os.sep)[1:]))
|
|
|
|
|
for root, dirs, files in os.walk('pym/calculate')
|
|
|
|
|
if '__init__.py' in files
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
|
name = __app__,
|
|
|
|
|
version = __version__,
|
|
|
|
@ -36,15 +47,8 @@ setup(
|
|
|
|
|
url = "http://calculate-linux.org",
|
|
|
|
|
license = "http://www.apache.org/licenses/LICENSE-2.0",
|
|
|
|
|
scripts = [],
|
|
|
|
|
packages=['calculate',
|
|
|
|
|
module_name,
|
|
|
|
|
module_name + '.client',
|
|
|
|
|
module_name + '.format',
|
|
|
|
|
module_name + '.server',
|
|
|
|
|
module_name + '.variables',
|
|
|
|
|
module_name + '.mod',
|
|
|
|
|
module_name + '.utils',
|
|
|
|
|
module_name + '.utils.colortext'],
|
|
|
|
|
package_dir={'': 'pym'},
|
|
|
|
|
packages=packages,
|
|
|
|
|
data_files = [("/etc/calculate", []),
|
|
|
|
|
("/var/calculate/remote", []),
|
|
|
|
|
("/var/log/calculate", [])]
|
|
|
|
|