You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.6 KiB

10 years ago
  1. #!/usr/bin/env python2
  2. # -*- coding: utf-8 -*-
  3. # setup.py --- Setup script for calculate-lib
  4. # Copyright 2008-2016 Mir Calculate. http://www.calculate-linux.org
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. import sys, os
  18. from distutils.core import setup
  19. from distutils.command.build_scripts import build_scripts
  20. from distutils.command.install_scripts import install_scripts
  21. __version__ = "3.2.2"
  22. __app__ = "calculate-lib"
  23. try:
  24. from portage.const import EPREFIX
  25. except ImportError:
  26. EPREFIX=''
  27. module_name = "calculate.lib"
  28. packages = [
  29. str('.'.join(root.split(os.sep)[1:]))
  30. for root, dirs, files in os.walk('pym/calculate')
  31. if '__init__.py' in files
  32. ]
  33. setup(
  34. name = __app__,
  35. version = __version__,
  36. description = "The library for Calculate 3",
  37. author = "Mir Calculate Ltd.",
  38. author_email = "support@calculate.ru",
  39. url = "http://calculate-linux.org",
  40. license = "http://www.apache.org/licenses/LICENSE-2.0",
  41. scripts = [],
  42. package_dir={'': 'pym'},
  43. packages=packages,
  44. data_files = [("/etc/calculate", []),
  45. ("/var/log/calculate", [])]
  46. )